craftcms / redactor

Edit rich text content in Craft CMS using Redactor by Imperavi.
https://plugins.craftcms.com/redactor
MIT License
100 stars 48 forks source link

Linking to Asset results in 404 #480

Closed HannahDeWachter closed 11 months ago

HannahDeWachter commented 11 months ago

Description

In a Redactor field we try to link to an asset, however when clicking on this link we get a 404. In an other Redactor field we have linked to the exact same asset and this works.

We noticed that there are %C2%AD inserted in the URL after clicking. In the HTML code the url is normal (see screenshot) but after clicking this is the url: https://www.poolstok.be/files/Sjablonen/Aan%C2%ADvraag%C2%ADfor%C2%ADmu%C2%ADlier-UZA-perceel-1.docx which results in a 404 page. Correct url: https://www.poolstok.be/files/Sjablonen/Aanvraagformulier-UZA-perceel-1.docx (this downloads the document)

Screenshot

We already tried following things:

Additional info

HannahDeWachter commented 11 months ago

Apparently this was our own fault. We use soft-hyphens in words longer than 12 letters.