Answers for "get url without query string java"

0

get url without query string

window.location.href.split('?')[0]
Posted by: Guest on May-16-2021
0

javascript: get the url without query string

let path = window.location.href.split('?')[0]
console.log({path})
// {
//  "path": "https://stacksnippets.net/js"
// }

//or

location.href.replace(location.search, '')
Posted by: Guest on January-31-2022

Code answers related to "get url without query string java"

Browse Popular Code Answers by Language