I am a hebrew LyX user and when creating a file most of the links in the TOC work correcrtly, except when the internal TOC link should point to a "Part" layout (Sections, subsections and so on work correctly)
Here is a minimal example of the problem. In this example, after creating the PDF, the only correct link is of the section layout.
%% LyX 2.3.5.2 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english,hebrew]{article}
\usepackage{fontspec}
\setmainfont[Mapping=tex-text]{David CLM}
\setsansfont[Mapping=tex-text]{David}
\setmonofont{David}
\usepackage{geometry}
\geometry{verbose,tmargin=1.5cm,bmargin=1.5cm,lmargin=1.5cm,rmargin=1.5cm}
\setcounter{secnumdepth}{-1}
\setlength{\parskip}{\medskipamount}
\setlength{\parindent}{0pt}
\usepackage{latexsym}
\usepackage{setspace}
\usepackage{microtype}
\doublespacing
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
% hebrew support package
\usepackage{culmus}
\newfontface\hebrewfont{David}
% \usepackage[hypertexnames=false]{hyperref}
\usepackage{hyperref}
\AtBeginDocument{
\def\labelitemii{\(\lhd\)}
\def\labelitemiii{\(\triangleleft\)}
\def\labelitemiv{\(\star\)}
}
\makeatother
\usepackage{polyglossia}
\setdefaultlanguage{hebrew}
\setotherlanguage{english}
\begin{document}
\tableofcontents{}
\pagebreak{}
\part{פארט}
מילים
\newpage{}
\section{סקשן}
מילים\newpage{}
\part{פארט}
מילים
\newpage{}
סתם תוכן\newpage
\end{document}