add $location.basePath() decoration