Forum Discussion
Russell Gove
Apr 22, 2017Iron Contributor
hi, how do i access querystring parameters from an spfx web-part.
hi, how do i access querystring parameters from an spfx web-part?
3 Replies
Sort By
- JSaiAbhinavCopper Contributor
Russell Gove Have you got the solution for this?
Please let me know If you got the solution for fetching querystring parameters from browser url.
JSaiAbhinav You can get the query string parameters in SPFx web part using URLSearchParams interface methods.
Check similar thread here for examples and other ways: Access the query string from SPFx web part using React
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
- Mikael SvensonSteel Contributorwindow.location.href - and manipulate it like any other javascript snippet. http://stackoverflow.com/questions/901115/how-can-i-get-query-string-values-in-javascript code to easily access parameters.