Если мой URL http://www.something.com/foo/bar/index.html?color=yellow&animal=rat, кажется, что:
-
$location.path()вернетfoo/bar/index.html -
$location.absUrl()вернетсяhttp://www.something.com/foo/bar/index.html?color=yellow&animal=rat -
$location.url()вернетfoo/bar/index.html?color=yellow&animal=rat
Есть ли какая-либо функция, которая вернет http://www.something.com/foo/bar/index.html?
Или мне нужно построить это самостоятельно с такими функциями, как protcol, host, port и т.д. (или отключить параметры запроса от себя)?