oscarb / flowlist

A read it sooner list populated by your friends
MIT License
2 stars 1 forks source link

Identify URL:s uniquely #9

Open oscarb opened 7 years ago

oscarb commented 7 years ago

When two different URL:s point to the same content, the URL:s should be considered the same.

This is so that features such as avoiding getting duplicate links and calculating statistic for links can be supported.

How can the URL be stored on the back-end in unique and identifying way?

oscarb commented 7 years ago

The suggested solution is to make use of:

oscarb commented 7 years ago

Canonical URL

Two ways have been found for websites to provide the canonical URL:

Canonicial <link rel="canonical" href="http://www.imdb.com/title/tt0117500/">

Open Graph <meta property="og:url" content="http://www.imdb.com/title/tt0117500/" />

Resources: