With a Tikz node, there is a shift of the underline line.
I use lualatex. See my related question : pdflatex vs lualatex underline mystery
\documentclass[french]{article}
\usepackage{xcolor,hyperref,tikz}
\hypersetup{%
colorlinks=true,
urlcolor=blue,
urlbordercolor=blue}
\AtBeginDocument{\hypersetup{pdfborderstyle={/S/U/W .6pt}}}
\tikzset{RndBox/.style args={#1 and #2}{%
thick,
fill=#1,
inner sep=0pt,
% outer sep=0pt,
draw=#2,
text=#2,
rounded corners=2pt,
minimum width=.6cm,
minimum height=1.25em,
text depth = 0ex,
font = \bfseries\sffamily
},
RndBox/.default={gray!25 and black}
}
\begin{document}
\href{%
https://studio.code.org/s/course3/stage/2/puzzle/1}{%
\smash{Labyrinthe}} un lien
\medskip
\tikz[anchor=base, baseline]
\node[RndBox,minimum width=20pt] {C} ;
\href{%
https://studio.code.org/s/course3/stage/2/puzzle/1}{%
\smash{Labyrinthe}} un lien
\end{document}


lualatexand I have the underline. I just triedpdflatexand there is no underline as you mentioned it. I'll post a new question. – Tarass Feb 07 '18 at 15:35