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

Linking to Asset results in 404 #480

Closed
HannahDeWachter opened this issue Dec 8, 2023 · 1 comment
Closed

Linking to Asset results in 404 #480

HannahDeWachter opened this issue Dec 8, 2023 · 1 comment
Labels

Comments

@HannahDeWachter
Copy link

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:

  • Removing the link and adding it again (as "Link to an Assets" and "Insert Link")
  • Copying the correct link from the other Redactor field and pasting this link
  • Uploading the Asset again (replace)

Additional info

  • Craft version: 4.5.11.1
  • PHP version: 8.2
  • Database driver & version: MySQL 44
  • Redactor version: 3.0.4
@HannahDeWachter
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant