Replace parts of current URL and go to it

/ Published in: JavaScript
Save to your folder(s)

Copy this code and paste it in your HTML
  1. javascript:(function() {var curloc = location.href; curloc = curloc.replace(/www/g,"cp");curloc = curloc.replace(/view/g,"edit"); location.href = curloc; })();

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.