Is there any straightforward way to get URL path segment without any additional data (url parameters, css '#', etc.)
for example:
full URL: http://example.com/panel/list
path segment I want to get: /panel/list
full URL: http://example.com/panel/list?user=joe
path segment I want to get: /panel/list
full URL: http://example.com/panel/list#header
path segment I want to get: /panel/list
And any other combination of data that is not path segment of my URL