Alex. – 09-19 Dec 29
I need to replace the url using regex,
current url :
needed url :
code that I tried :
problem is if the url changes to :
current url :
http://localhost:3000/#/test/id/123456&gid=1&pid=1needed url :
http://localhost:3000/#/Portfolio/id/123456code that I tried :
problem is if the url changes to :
http://localhost:3000/#/test/id/123456&gid=1&pid=1/test or http://localhost:3000/#/test/id/123456&gid=1&pid=1&test=1 my code will delete everything after &gid... which I don't want, I only need to get rid of gid and pid, is there anyway I can do it?