Small problem. Currently I have such code :
const { pathname } = window.location; const paths = pathname.split("/").filter(entry => entry !== ""); const lastPath = paths[paths.length - 1];
My URL looks like this: https://example.com/sbm_feedback/?agent=Ben&score=4&ticketid=12345
The output I get by this code is: sbm_feedback
What I want to get is: ?agent=Ben&score=4&ticketid=12345
It probably just needs just a small change but I'm not a dev at all. Thanks!