Skip to content
Snippets Groups Projects
Commit 53315288 authored by Fabien Meghazi's avatar Fabien Meghazi
Browse files

Merge pull request #465 from franckbret/master

[FIX] Correctly URI encode website new page title
parents a15681c3 e932ecb9
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,7 @@
}
}).then(function (val, field, $dialog) {
if (val) {
var url = '/website/add/' + encodeURI(val);
var url = '/website/add/' + encodeURIComponent(val);
if ($dialog.find('input[type="checkbox"]').is(':checked')) url +="?add_menu=1";
document.location = url;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment