How to get a certain part of an URL
Hi.
I have a little problem and I hope that you can help.
I need to get the path of the URL except for the first slash "/".
Now if I use
window.location.pathname I get an output like this:
/about/about/9081ae1b02/
That is almost right but I need to get rid of the first slash (marked in red) so I get:
about/about/9081ae1b02/
Any suggestions on how to achieve that?
Thanks.