有共用头部header
<div class="header-wrap">
<div class="header">
<a class="logo">某某活动</a>
<button ui-sref="login">登录</button>
<button ui-sref="signup">注册</button>
</div>
</div>
有多个导航,且都会有用到header的登录和注册,在每个导航下点击的登录或者注册成功之后都会返回到点击之前的那个页面,请问用ui-router应该怎么实现呢?(注:在注册的时候会有子路由存在,使用了window.history.back(),但返回页面是上一个路由页面而已),请问应该怎么设置路由?
$state.go('你要返回的主页标识')