I have used the StylishArticle class several times, but I recently thought it would be a good idea to reference sections based on their names instead of using sections numbers or pageref.
So I defined \newcommand{\appref}[1]{Appendix:\nameref{#1}} for use with \subsection* (not numbered), and tested it with a normal article class. Seems to be working fine.
However when I use it with StylishArticle, it doesn't seem to work so well, and I get a warning:
Package hyperref Warning: Suppressing empty link on input line 86.
This link will get you to an Overleaf document (read-only) so you can see for yourself. I tried to keep the example small, but I don't think it's minimal; I need help identifying what's causing this issue. Any help greatly appreciated!
Following @egreg suggestion, here is a much shorter MWE:
\documentclass[12pt]{article}
\usepackage{titlesec}
\usepackage[unicode=true]{hyperref}
\newcommand{\appref}[1]{Appendix:\nameref{#1}}
\begin{document}
\section{A normal section}
Reference to \appref{app}.
\phantomsection
\section*{Appendices}
\label{app}
\addcontentsline{toc}{section}{Appendices}
\end{document}
articleclass, by just loadingtitlesec. – egreg Oct 02 '16 at 14:52\documentclass{article}\usepackage{titlesec}\usepackage{hyperref}, then the definition of\apprefand the same body as your test document. – egreg Oct 02 '16 at 15:04