You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
By clicking “Sign up for GitHub”, you agree to our
terms of service
and
privacy statement
. We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
Description:
我需要做一个多语言的cms,当我在后台点击语言链接的时候,我能切换到相对应的语言。
我使用LaravelLocalization插件来实现语言路由的切换:
prefix' => LaravelLocalization::setLocale() . '/' . config('admin.route.prefix')
。
这些在刚刚实现的时候运行良好,但过了一晚之后,当我点击切换语言链接的时候,系统需要验证登录,自动跳转到:
http://cms.test/admin/auth/login
,登录之后会跳转到后台首页:
http://cms.test/admin
。我需要当我点击跳转链接的时候,他会跳转到:
http://cms.test/zh_CN/admin
。如果我硬改跳转路由到:
http://cms.test/zh_CN/admin
,则会重定向过多。请问如何解决跳转到后台首页的问题或者有没有更好的方式实现多语言后台?
Steps To Reproduce: