The implementation of HTMLAnchorTag doesn't support URLUtils.pathname.
I discovered this issue while attempting to utilize sbt-jasmine-plugin to unit test an angular.js application. I have tracked down this issue with env.js as the cause of this issue I reported. I also opened this Stackoverflow question.
I intend to implement it per this documentation.