Normally formatting is done by \label (actually \refstepcounter). One could use multiple labels depending on how one wanted the reference to look. This uses the same \mylabel macro used here.
Hyperref uses its own labels which can be found using \getrefbykeydefault. Also, \ref is protected (will not expand until printed), so if you want to use it in a macro you need to use \getrefnumber instead. See refcount manual.
I threw in egreg's solution for comparison.
\documentclass{report}
\usepackage{hyperref}
\renewcommand{\thesection}{\arabic{section}}% non-standard definition
\makeatletter
\@ifpackageloaded{hyperref}%
{\newcommand{\mylabel}[2]% #1=name, #2 = contents
{\protected@write\@auxout{}{\string\newlabel{#1}{{#2}{\thepage}%
{\@currentlabelname}{\@currentHref}{}}}}}%
{\newcommand{\mylabel}[2]% #1=name, #2 = contents
{\protected@write\@auxout{}{\string\newlabel{#1}{{#2}{\thepage}}}}}
\makeatother
\newcommand{\getrefanchor}[1]% #1 = label
{\getrefbykeydefault{#1}{anchor}{Doc-Start}}
\begin{document}
One can use \ref*{chapter}.\ref{section}, \ref{mylabel} or
\hyperlink{\getrefanchor{section}}{\getrefnumber{chapter}.\getrefnumber{section}}.
\chapter{chapter}\label{chapter}
\section{dummy}
\section{section}\label{section}\mylabel{mylabel}{\thechapter.\thesection}%
\end{document}
cleverreforvarioref? – Johannes_B Apr 30 '17 at 09:32variorefwhich integrates the page number in the reference, or with the customizations ofcleveref– Moriambar Apr 30 '17 at 09:39\ref*{chapter_label}.\ref{section_label}– egreg Apr 30 '17 at 09:44\ref{section_label}already contain the chapter number? – Arzigoglu Apr 30 '17 at 09:59