How can I force hyperref to not touch one instance of something, for example one instance of a footnote. I looked at the manual of this package, for example this link and this one. You can open any of the two and search for \hyper@nopatch@footnote as an example. But the lack of example and demonstration, made me clueless that how to do this \hyper@nopatch@footnote. I tried type it in different locations of a TeX file, or to add it in some brackets in different locations, some newcommend definitions, but couldn't inverse engineer what it is supposed to mean.
If you want a piece of a tiny TeX example, then you can look at the following.
\documentclass[10pt,a4paper]{article}
\usepackage{hyperref}
\renewcommand{\thefootnote}{\fnsymbol{footnote}}
\makeatletter
\newcommand\footnoteref[1]{\protected@xdef@thefnmark{\ref{#1}}@footnotemark}
\makeatother
\footnotetext[1]{\label{foot:affiliation}Royal Persian Society of Science, Isfahan, Kingdom of Persia}
\setcounter{footnote}{1}
\author{
AmirHosein Sadeghimanesh\footnoteref{foot:affiliation} \footnote{email-1@persia.ac.??}
and
My Collaborator\footnoteref{foot:affiliation} \footnote{email-2@persia.ac.??}
}
\title{How to have labels in footnotes in author section of a paper in \LaTeX without using a package}
\date{Mehr 28, 2581}
\renewcommand{\thefootnote}{\arabic{footnote}}
\begin{document}
\maketitle
Here we just write a sentence and give it a footnote to see that the index of footnotes are back to integers.\footnote{Just a footnote.}
\end{document}
Too read about this example see my other post https://tex.stackexchange.com/a/662420/22458. The goal is to force hyperref to not touch the affiliation footnote in the above file that is causing error message in this file. I tried some other suggestions at some other posts in this websites such as \ref* or \@refstar but no success. So I am more into knowing how to turn off hyperref on specific places or items such as the footnote here.
Edit: As suggested by @UlrikeFischer, I put the \maketitle inside a NoHyper environment. Here is screenshot of what I get both in TeXStudio and VSCode's Latex Workshop.


\hyper@nopatch@footnoteallows to suppress all footnote patches made by hyperref and is meant for packages which want to support hyperlinking themselves, it is not meant for one footnote. – Ulrike Fischer Oct 20 '22 at 13:42Argument of \Hy@setref@link has an extra }. \end– AmirHosein Sadeghimanesh Oct 20 '22 at 14:10\footnotetextinside the document stopped the error message. Even without theNoHyperenvironment around maketitle. Thanks. – AmirHosein Sadeghimanesh Oct 20 '22 at 15:13