Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Wrong URL encode #240

Open
gmamekudz opened this issue Apr 18, 2023 · 0 comments
Open

Wrong URL encode #240

gmamekudz opened this issue Apr 18, 2023 · 0 comments

Comments

@gmamekudz
Copy link

gmamekudz commented Apr 18, 2023

The urls will be wrong encoded. If there is for example a space character, the resulting urls will be multiple encoded, such e.g.

http://127.0.0.1:8888/doc/module-BossMaintenance%2520Vue%2520Component.html
or
http://127.0.0.1:8888/doc/module-BossMaintenance%252520Vue%252520Component.html

instead of

http://127.0.0.1:8888/doc/module-BossMaintenance%20Vue%20Component.html

HOTFIX: line 353 buildLink in templateHelper.js:
if(fileUrl.indexOf("%25")<0){
return util.format('<a href="%s"%s>%s', encodeURI(fileUrl + fragmentString), classString, text);
}else{
return util.format('<a href="%s"%s>%s', encodeURI(decodeURI(fileUrl) + fragmentString), classString, text);
}

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

No branches or pull requests

1 participant