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: https://forest.localcharts.org/ocl-001B.xml posted to here, which I had to manually edit back from lowercase to uppercase.
AI-generated summary
A user (Owen_Lynch) reported an issue with Discourse embed normalizing URLs to lowercase, causing a link to their forum to display incorrectly. Lilly asked if the issue was recent and if any changes had been made to the Content Security Policy (CSP) or blocklist addresses. Arkshine investigated and found that the issue is due to the URL being normalized and downcased before being saved in the database (GitHub link), suggesting that the URL should be stored normalized without downcasing and only downcased when needed.
Was it working properly before at one time?
yea the embed isn’t even loading in safe mode and shows errors in console ![]()
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. ![]()

