SyntaxFix
Write A Post
Hire A Developer
Questions
Just use
$location.url();
Instead of
$location.path();