[FIX] website: create new page redirect to error 404

bzr revid: chm@openerp.com-20140331144123-p3unfkbqm5c0y1sx
This commit is contained in:
chm@openerp.com
2014-03-31 16:41:23 +02:00
parent ed037b8a94
commit b6ba6d9a9c
@@ -48,7 +48,7 @@
}
}).then(function (val, field, $dialog) {
if (val) {
var url = '/website/add' + encodeURI(val);
var url = '/website/add/' + encodeURI(val);
if ($dialog.find('input[type="checkbox"]').is(':checked')) url +="?add_menu=1";
document.location = url;
}