Is there any way to tell the browser about bookmarking a different URL than in the address bar?

I have an application that uses pretty unfriendly dynamic URLs most of the time. I provide friendly URLs to some content, but they are used only as an entry point to the application, after which all generated URLs will be unfriendly.

My question is, if I know that the user is on a page for which a friendly URL can be created, and they want to bookmark it, is there a way to tell the browser bookmarks friendly, and not what is in the address line?

+4
source share
2 answers

No. It is by design and a good thing.

Imagine the following scenario: Piskvor resorts to http://innocentlookingpage.example.com/ and clicks the bookmark button. He does not notice that the saved bookmark points to http://evilsite.example.net/ . The next time he opens this bookmark, he may be a little surprised.

Another example without problems between domains: Piskvor the site administrator clicks "bookmark" on the home page http://security-holes-r-us.example.org/ - unfortunately, the page is vulnerable to script injection, and the embedded code changes the bookmark to http : //security-holes-r-us.example.org/admin? action = delete & what = everything & sure = absolutely . If he still logs in the next time he opens the bookmark, he may find that his site is cleared of data (although it was his mistake not to prevent the injection of script AND non-idempotent GET resources , but it's too often )

+1
source

I was hoping rel="canonical" would help here, but it looks like it is used only for indexing. Perhaps one day browsers will use it.

+1
source

All Articles