# \rightmark not showing unnumbered sections

I am currently trying to display the current section in the top-right header, but as I am using unnumbered sections, they do not appear and the only displayed section is Contents, which it now says on every page. My current code looks something like this:

\usepackage{fancyhdr}

\begin{document}
\section*{Abreviations}
\subfile{sections/Abreviations}
\tableofcontents
\end{document}


Any help or advice is appreciated!

Unnumbered sections don't set marks. But you can set them yourself, like

\markright{Abbreviations}

\documentclass{article}

\usepackage{fancyhdr}
\pagestyle{fancy}

% Unnumbered section
\newcommand{\UNsection}[1]{\section*{#1}
\markright{#1}}

\begin{document}

\UNsection{Abreviations}