geeksforsocialchange / gfsc-v3

GFSC site migration to Hugo
https://gfsc.studio
1 stars 2 forks source link

[Bug]: Links in podcast descriptions are broken #240

Closed kimadactyl closed 1 year ago

kimadactyl commented 1 year ago

Description

Our podcast out in the wild has shorturls like this:

https://gfsc.studio/podcast/1

These are now broken

Steps to reproduce

  1. Look up GFSC Podcast on Spotify
  2. Try and follow the episode link
  3. It goes to the homepage

Platform (if relevant)

What device and browser were you using?

ivan-kocienski-gfsc commented 1 year ago

So I did some reading

https://discourse.gohugo.io/t/url-redirect-forwarding/4689/19 https://harrycresswell.com/writing/hugo-netlify-redirects/

And it seems there are a few ways to do this

ivan-kocienski-gfsc commented 1 year ago

I am going to investigate the meta redirect first

ivan-kocienski-gfsc commented 1 year ago

Turns out there's an alias header option in a given blog post that will redirect from that URL to the correct blog

https://gohugo.io/content-management/urls/#aliases