I'm getting my url like this:
var url = window.location.href;
I have the following return: link .
But I do not want the part of GET, I wanted to get the url like this: link
How could I do it?
Try to get only the path
var url = window.location.pathname