stacker.news icon indicating copy to clipboard operation
stacker.news copied to clipboard

Handle redirects for dup checks

Open cointastical opened this issue 2 years ago • 1 comments

Some people post Subtask newslettter articles using the open.substack.com URL format, while others post using the author subdomain URL scheme. Either way, it's the same article. The open.substack.com methods gets an HTTP 302 redirect to the author subdomain URL scheme.

Open scheme: https://open.substack.com/pub/[author]/p/[article] Canonical (author subdomain scheme): https://[author].substack.com/p/[article]

Example:

https://open.substack.com/pub/inbitcoinwetrust/p/bitcoin-price-is-not-the-most-exciting https://inbitcoinwetrust.substack.com/p/bitcoin-price-is-not-the-most-exciting

If the solution chosen is to simply rewrite the link (i.e., change the value that goes in the input field from the open.substack.com to the [author].substack.com scheme, then a dup check needs to be performed on that author subdomain scheme, so as to not introduce a new problem like the one reported for issue #244.

cointastical avatar Mar 30 '23 23:03 cointastical

I suppose the same thing occurs with Medium.com blog posts.

For example, my medium.com/@cointastical links will get redirected to cointastical.medium.com:

https://medium.com/@cointastical/exchanges-with-support-for-bitcoin-lightning-network-payments-739829bcb7bc gets redirected to https://cointastical.medium.com/exchanges-with-support-for-bitcoin-lightning-network-payments-739829bcb7bc

cointastical avatar Mar 30 '23 23:03 cointastical