mozilla-magnet / magnet-metadata-service

A service that returns metadata for given URLs
Other
8 stars 10 forks source link

Hash fragment/anchor not included in final `url` #55

Open wilsonpage opened 8 years ago

wilsonpage commented 8 years ago

Since we follow <link rel=canonical ...> we discard any hash fragment from the URL. This means that the user won't land in the targeted sub-section when they follow links from magnet-client.

We should preserve the hash fragment by re-appending it after and canonical link following.

oteo commented 8 years ago

Just adding that Wilson opened this issue due to some problems we have with some buzzfeed links (e.g https://www.buzzfeed.com/americanexpressuk/21-amazing-secret-places-to-find-in-london#superlist_3309866_3098065)

Shortening the URL (with goo.gl) and broadcasting it via beacon or Magnet desktop client, when clicking on the tile, the browser is launched and the general page (not the specific for that Point of Interest) is opened. It seems that the part after the hash is missed at some step of the URL discovery.