Avatar of Dinesh Bali
Dinesh Bali
 asked on

Getting query string in VueJS

Hi,

My VueJS code is embedded in one of the MVC application.

From the current URL, I wanted to fetch id and page no.

Page URL is something like:
https://www.mydomain.com/folder1/folder2/getdetails/1234/3

Where 123 is the id and 3 is the page no.

In this URL, it is also possible that ID and page no is not provided.
Then the URL will be like
https://www.mydomain.com/folder1/folder2/getdetails

How do we get id and page no from the current URL if available using VueJS?

Please advise.

Kind Regards,


React* Vue* vuejsAngular

Avatar of undefined
Last Comment
Dinesh Bali

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
leakim971

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Dinesh Bali

ASKER
Many thanks
I will check and confirm today.

Kind Regards
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy