【发布时间】:2013-03-19 22:01:24
【问题描述】:
我希望能够捕获我网站中以“/@”开头的任何链接,并在完全重新加载浏览器时进行处理。
类似:
$locationProvider.html5Mode(true)
$routeProvider.when("/@:id",
# window.location.href = [the link's url]
# all others are handled by typical controller/view
我已经能够使用锚标记上的属性/指令来解决问题,但我想在 url 路由级别执行此操作。
【问题讨论】:
-
这不是您问题的真正答案,但您可以按照stackoverflow.com/a/19257277/2248275 中的建议将
target="_self"添加到您的链接中