troubleshooting Question

Getting query string in VueJS

Avatar of Dinesh Bali
Dinesh Bali asked on
React* Vue* vuejsAngular
2 Comments1 Solution16 ViewsLast Modified:

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:

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

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

Please advise.

Kind Regards,

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros