0

Is there a way to provide a 'pretty URL' mask for the URL in the browser address bar that goes back to its actual value when copied?

Modern browsers do something like this by hiding https://www. visually but if you copy the URL it's actually there. I want this behaviour but with text of my choosing covering parts of the url of my choosing.

leto
  • 489
  • 4
  • 18
  • Like, with HTML? If so just set `href` to the actual link then put the text as the "pretty url" – S. C. Dec 31 '22 at 16:24
  • @S.C. No. In the actual address bar. – leto Dec 31 '22 at 16:26
  • Then no, you can't detect copying of the URL in the address bar, not even sure you could change the URL without it redirecting away. – S. C. Dec 31 '22 at 16:27
  • You can change it without redirecting, e.g. this answer: https://stackoverflow.com/questions/10953792/change-url-in-browser-address-bar-without-reload-existing-page. But this isn't quite the functionality I'm looking for. – leto Dec 31 '22 at 16:29
  • I don't really see why it shouldn't be possible as long as the address is still relative to your domain. – leto Dec 31 '22 at 16:33

0 Answers0