Alex. – 09-19 Dec 29
I need to replace the url using regex,
current url :
http://localhost:3000/#/test/id/123456&gid=1&pid=1
needed url : http://localhost:3000/#/Portfolio/id/123456
code 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?5 Replies
I meant if the url changes to
http://localhost:3000/#/test/id/123456&gid=1&pid=1&test=1/test
I want my code to replace it to http://localhost:3000/#/test/id/123456&test=1/test
but what my code does is it replace it to : http://localhost:3000/#/test/id/123456
which is not goodUnknown User•3y ago
Message Not Public
Sign In & Join Server To View
yes thank's a lot it worked
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
This thread hasn’t had any activity in 12 hours, so it’s now locked.
Threads are closed automatically after 12 hours. If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/1057951050319011850