CSS rule for making the URL of links visible when printing
I originally picked this up from Print URL After Links | CSS-Tricks - CSS-Tricks by Chris Coyier and later have added on top. See my guide for print styles for more
a::after {
content: " (" attr(href) ") ";
}
/* Add the base URL before relative links */
a[href^="/"]::after {
content: " (https://hamatti.org" attr(href) ") ";
}See also Josh’s TIL entry.