getgrav / getgrav/grav-plugin-admin
Russian media filename stored incorrect in page content
- Dominant language
- PHP
- Stars
- 377
- Forks
- 225
- Avg merge
- 11h 51m
- Merged PRs (30d)
- 4
Description
When i try to put the picture with cyrillic characters in tfilename to the page content it looks pretty strange

Filename and preview in the default media box are displayed correctly

But when i click on the "eye" icon it points me to 404-page
On the frontend link to image in IMG tag is broken and pointed to the wrong location

Therefore, using simple digit name for image i have no issues

How to transliterate files on the fly? Or, maybe, set random filenames on any uploaded media as a fast solution?
Contributor guide
Research direction
Reproduce the issue by uploading an image with Cyrillic characters, opening it through the media box eye icon, and checking the frontend IMG link. Compare the stored filename and generated URLs with the working digit-only filename case; done when both preview and frontend links resolve correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- content, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100