Skip to content

Wrong URL encode #240

Description

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);
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions