[Tex/LaTex] Hyperref and hyperlinks

hyperref

With the following MWE:

\documentclass[a4paper]{report}
\usepackage{hyperref}

\begin{document}
\href{en.wikipedia.org}{\emph{gungumapu}}
\href{en.wikipedia.org}{gungumapu}
\end{document}

I would expect "gungumapu" to appear in emph (italic) typeface and in plain upright typeface, both times with a link under it, i.e. if I click on either appearance of "gungumapu", I'd expect en.wikipedia.org to open in my browser. Only that doesn't happen. Why is that? Is my expectation wrong? If so, how do I put a hyperlink in my document?

Best Answer

The protocol is missing. \href tries to detect different protocols (URL links, file links, links to PDF files, ...). As egreg has written in his comment, specifying the correct, complete URL helps:

\documentclass[a4paper]{report}
\usepackage{hyperref}

\begin{document}
\href{http://en.wikipedia.org/}{\emph{gungumapu}}
\href{http://en.wikipedia.org/}{gungumapu}
\end{document}
Related Question