In my LaTeX documents, I am playing with a lot of axioms which I write under a theorem environment, while using the following math packages:
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}:
I define the axiom environment in the preamble,
\newtheorem{ax}{Fairness axiom}
then in the text I write,
\begin{ax}[name of the axiom]
\label{label of the axiom}
{definition of the axiom}
\end{ax}
To refer to these axioms, I use \nameref{label of the axiom} through the following packages
\usepackage{hyperref}
\usepackage{nameref}
In the article document class, \nameref{label of the axiom} does exactly what I want : a reference to the name of the axiom with an hyperlink to its definition.
But in the beamer class, \nameref{label of the axiom} quits referring to the name of the axiom and refers instead to the name of the section in which the axiom is included.
Do you know why? Is there any way to get the beamer class behaving like the article class in this matter?

`to mark your inline code – Corentin Oct 27 '12 at 11:08\phantomsectioncommand immediately prior to the axiom environment? – Mico Oct 27 '12 at 12:11