cncf / presentations-website

Code for presentations.cncf.io
MIT License
2 stars 0 forks source link

URLs with escaped characters aren't getting stored properly #16

Open cjyabraham opened 2 months ago

cjyabraham commented 2 months ago

A presentation currently has this value:

  slides: https://github.com/ppatierno/presentations/blob/main/2020/2020-09-05%20KubeCon%20EU%202020%20-%20Introduction%20to%20Strimzi_%20Apache%20Kafka%20on%20Kubernetes.pdf

In the database, however, it gets stored like this:

https://github.com/ppatierno/presentations/blob/main/2020/2020-09-05KubeConEU2020-IntroductiontoStrimzi_ApacheKafkaonKubernetes.pdf

Subsequent syncs of the presentation data creates a new record for the presentation since this url doesn't match the one in the DB. Also the front-end url for the slides leads to a 404.

As a workaround, I'll set up a redirect to the slides from a url that will work. It'd be nice to find a permanent solution for this though. It seems WordPress is doing some kind of sanitization when it writes meta values into the DB.