Discourse embed normalizes urls to be lowercase

I’m using discourse embed on my static site, and the auto-posted link to my discourse forum shows up as all lowercase, which is wrong. Here’s an example: On Debugging and Errors posted to here, which I had to manually edit back from lowercase to uppercase.

1 Like

Was it working properly before at one time?

yea the embed isn’t even loading in safe mode and shows errors in console :thinking:

Have you changed anything recently with your CSP or blocklist addresses?

The URL is normalized and downcase as well here, before being saved in the database:

Due to the ID part being case-sensitive, the HTML could not be retrieved, resulting in a loading error.

Maybe the URL should be stored normalized without downcasing, and you should only downcase the URL when needed. :thinking:

1 Like