You are viewing a single comment's thread from:

RE: How to fix canonical URLs and links in your pre-fork posts

in HiveDevs4 years ago

Don't use canonical URLs. Use relative URLs. If Hive is supposed to be distributed, if we open a Hive link in some other front end, the Hive link should open in the same front end. Centralizing over one front end, is a problem with our culture.

For example, my blog is here

Sort:  

I agree relative links are better. I will change the script and it will replace steemit.com links with relative links now.

Short test if it does also work for posts:
my post

I think it would be best to separate the functionality of updating in-post links and the canonical link. For example, I want to update the canonical link on all my posts, but not sure I'm ready to update in-post links, since oftentimes I chose certain frontends for certain reasons when linking to things.

Would be good to have an option to do each of the actions.

I added parameters at the top of the script, which can be used to define the behavior of the script.

Good idea, I will make it optional.