Javascript URL

Is there a way to grab the url of a page. Not just the full url line ‘window.location.href’ which would equal http://www.mysite.co.uk/aboutme… I want to just get the /about me section without the full address.?

Thanks
David