getgrav / getgrav/grav-plugin-admin

Image title should not be url-encoded

Open
#2,379 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
377
Forks
225
Avg merge
11h 51m
Merged PRs (30d)
4

Description

Hi! I believe, [this ](https://github.com/getgrav/grav/issues/3653) issue must be here.

The problem is, when you edit a page and want to add an image from your HDD with unicode name, you get this .md code:

`![%D0%A2%D0%B5%D1%81%D1%82](%D0%A2%D0%B5%D1%81%D1%82.jpg "%D0%A2%D0%B5%D1%81%D1%82")`

![image](https://user-images.githubusercontent.com/20968145/205467313-ede2bc4c-8766-464a-acc0-b9f382662fba.png)

![https://user-images.githubusercontent.com/20968145/205467330-4d99019f-d663-4d51-b454-76a509e79265.png](https://user-images.githubusercontent.com/20968145/205467330-4d99019f-d663-4d51-b454-76a509e79265.png)

That's wrong. The 1'st and the 3'rd params are actually img's Alt and Title (human-readable) and they should not be url-encoded. Like this:

`![Тест](%D0%A2%D0%B5%D1%81%D1%82.jpg "Тест")`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.