Hello
I want to get the current URL using javascript/jquery. The URL should include subfolders/subsites in the path but not the page or any other query parameters.
Examples
http://test.com/site1/folder/abc/test.aspx
Output : http://test.com/site1/folder/abc/
http://test.com/site1/folder/abc/test.aspx?id=1&name=xyz
Output : http://test.com/site1/folder/abc/
http://test.com/site1/folder/abc/test.aspx?id=1,name=xyz
Output : http://test.com/site1/folder/abc/
http://test.com/site1/folder/abc/?testid=45
Output : http://test.com/site1/folder/abc/
Any ideas?