In Firefox, when printing a page with anchor tags, the link location is printing after the text

Brett picture Brett · Jan 29, 2010 · Viewed 8.6k times · Source

For example,

<a href="../somepage/page.aspx?qs=asdf">Text Here</a>

will print out as...


Text Here(../somepage/page.aspx?qs=asdf)


In IE, it looks normal (doesn't print the url). Any ideas why this is acting in this fashion?

Answer

Steve Eynon picture Steve Eynon · Nov 30, 2013

Extrapolating from Brett's answer, on Firefox 25, this CSS style removes the offending href:

@media print {
    a:link:after,
    a:visited:after {
        content: "" !important;
    }
}