Hide URL Path When Printing in Chrome

When you print (or print preview) web page in Chrome, printout will include URLs for each link on the page.

For example, if you have a link “Back to Homepage”, when printed it will display as “Back to Homepage (www.mysite.com)”.

To stop URLs being printed, add the following style –

 <style media="print">
    a[href]:after
    {
        content:none !important;
    }
</style>

Leave a comment