syntaxfm / website

Syntax Podcast Website
https://syntax.fm
MIT License
980 stars 492 forks source link

Quickly navigating to a particular show by number #1668

Open tmalaher opened 2 months ago

tmalaher commented 2 months ago

I was listening to an older episode (719) in my podcast player last night. I wanted to look at the show notes at my desk this morning. Last I had glanced at my podcast player and noted the episode number.

Arriving at https://syntax.fm/shows, I noted that the shows are displayed in chronological order (reverse or forward). I thought I would just use the search to jump to the right episode.

No luck. Search results were:

#762 What to Steal. Finding Inspiration in Web Development
…/@wesbos/video/7198565156853386502. * Sentry’s Date Picker - https://x.

Hovering over search result items, I noted that URLs for shows are: https://syntax.fm/show/:id/:slug (e.g. https://syntax.fm/show/719/fullstack-typescript-apps-with-no-build-step-with-brian-leroux) I've found that on many sites with URLs in this format the "slug" is optional, since the id is enough to uniquely determine the desired page. E.g. https://ctvnews.ca/1.6865914 redirects to: https://www.ctvnews.ca/london-drugs-stores-remain-closed-monday-after-cybersecurity-incident-1.6865914

So I tried https://syntax.fm/show/719 No joy. This just redirects to https://syntax.fm/shows

So. Suggestions:

  1. https://syntax.fm/show/:id should redirect to the full page URL.
  2. The search engine should be able to find shows by id
wesbos commented 2 months ago

great suggestions! We do have syntax.fm/719 - but there is no way for you to know that.

I agree on both accounts, these changes should be made:

  1. The search should index the show number and show a bang on match when inputting a number
  2. syntax.fm/show/:id/:slug - the slug can be anything, but if you omit, it is gives us an error. So we need to make the slug optional. all meta tags are already in place here for the correct canonical URLS.