There is a workaround using the official magyar.ldf
, just include the following macro (which I got from an old Debian teTex mailing list) in your preamble.
\makeatletter\let\Hy@magyar@saved@refstepcounter\refstepcounter\addto\extrasmagyar{% \let\H@refstepcounter\refstepcounter \let\refstepcounter\Hy@magyar@saved@refstepcounter \expandafter\renewcommand\expandafter*\expandafter\@ssect \expandafter[\expandafter 5\expandafter]\expandafter{% \expandafter\def\expandafter\@currentlabelname\expandafter{% \expandafter #\expandafter 5\expandafter }% \@ssect{#1}{#2}{#3}{#4}{#5}% \phantomsection }% \expandafter\Hy@magyar@patch@sect\expandafter{% \@sect{#1}{#2}{#3}{#4}{#5}{#6}[{#7}]{#8}% }{#1#2#3#4#5#6[#7]#8}{#2}{#7}%}\def\Hy@magyar@patch@sect#1#2#3#4{% \def\@sect#2{% \setcounter{section@level}{#3}% \def\@currentlabelname{#4}% \ifnum #3>\c@secnumdepth \Hy@GlobalStepCount\Hy@linkcounter \xdef\@currentHref{section*.\the\Hy@linkcounter}% \fi #1% \ifnum #3>\c@secnumdepth \Hy@raisedlink{\hyper@anchorstart{\@currentHref}\hyper@anchorend}% \fi }%}\makeatother