I need to extract the path before the # in my AngularJS app, so for example if my app url is:
http://www.domain.com/folder/app/#/home
I need to get only this portion:
http://www.domain.com/folder/app/
I've tried using $location.path, $location.abspath but couldn't find any function that can get me the first portion before the #. Can someone please help me by telling me what I am missing here? and if there is a way to get the first portion of the url (before the #)? Thanks