var today = new Date().toJSON().slice(0, 10).split('-');
var input = prompt('Paginatitel', '');
if (!input) return false;
- var url = today[0] + '/' + today[1] + '/' + today[2] + '-' +
+ var url = today[0] + '/' + today[1] + '-' + today[2] + '-' +
input.toLowerCase().replace(/[^a-z0-9]+/g, ' ').trim();
var title = encodeURIComponent(input.trim());
window.location = '/nieuws/'+url+'?edit='+title+'#edit';