If the hypertarget is in a text-mode location, links to it work normally (they show the target line at the top of the page). However, if the hypertarget is in math mode (of any kind: in-line or in display-math or in equation arrays), then it will direct to the line after the target.
MWE
\documentclass{minimal}
\usepackage{amsmath}
\usepackage{hyperref}
\begin{document}
\hypertarget{test1}{target1 in text mode}
Filler text.
$3 + 4 = 7 \hypertarget{test2}{}$ More filler text.
Link 2 actually directs to this line, rather than the above line, where we would expect it to do the latter.
\begin{eqnarray}
x * y = z \hypertarget{test3}{} \\
a + b = c % Link 3 actually directs to this line, rather than the above line, where we would expect it to do the latter. \\
\end{eqnarray}
\hyperlink{test1}{Clicking on this link shows target1 at the top of the page, as expected.}
\hyperlink{test2}{Link 2.}
\hyperlink{test3}{Link 3.}
\end{document}
This seems like a bug to me, but is there a better way to do this?

https://tex.stackexchange.com/questions/17057/hypertarget-seems-to-aim-a-line-too-low
https://tex.stackexchange.com/questions/2068/hyperlinks-to-a-bibliography-are-one-line-off
– James Ray Jan 26 '18 at 08:30