X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/650a63a68456eee4dad31170e2660319a82c905d..b0e06544a5299b3e77561f61544ff6a23094e3b1:/nieuws/edit.js diff --git a/nieuws/edit.js b/nieuws/edit.js index 3155ac0..6f3f54f 100644 --- a/nieuws/edit.js +++ b/nieuws/edit.js @@ -8,7 +8,7 @@ editlink.onclick = function () { 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'; + window.location = window.location.pathname+'/'+url+'?edit='+title+'#edit'; return false; }; document.getElementById('news').appendChild(editlink);