This is gross, but the base filename needs to be removed from the URL, otherwise it gets included in the path. This breaks ngRoute/ui-router, and we don't want that.