Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix links #3

Open
tim-phillips opened this issue Jul 30, 2019 · 0 comments

Comments

@tim-phillips
Copy link
Member

commented Jul 30, 2019

In lib/sanitize-event.js, urls currently default to our old LACA archive. Once we've added search (kchungradio/radio-archive-api/issues/2), these links should point to the archive page with a pre-filled query with that show's name (https://www.kchungradio.org/archive?q=night+driving).

const generateShowUrl = showName => (
  `https://www.kchungradio.org/archive?q=${encodeURI(showName)}`
)
  • lowercase
  • plus sign instead of %20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.