[Tex/LaTex] Make hyperref links open in new browser window for easier navigation

hyperrefnavigationurls

I edit a newsletter using LaTeX and I find hyperref very limiting. I'm using hyperref with only one argument: hidelinks. If I click on a \url link in the newsletter the URL opens in the same window, but without the ability to return to the newsletter via the browser's 'back' button. DUH! How can I emulate the HTML target value _blank feature and open the \url in a new window?

Best Answer

There is an option pdfnewwindow for the command \href. This option does not work with the command \url, but \url{URL} is actually equivalent to \href{URL}{\nolinkurl{URL}}.

This means that you can define a new command like this:

\newcommand{\urlNewWindow}[1]{\href[pdfnewwindow=true]{#1}{\nolinkurl{#1}}}

and then say

\urlNewWindow{URL}