File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -248,6 +248,24 @@ func RegisterRoutes(m *macaron.Macaron) {
248248 m .Post ("/keys/delete" , user .DeleteKey )
249249 m .Get ("/organization" , user .SettingsOrganization )
250250 m .Get ("/repos" , user .SettingsRepos )
251+
252+ // redirects from old settings urls to new ones
253+ // TODO: can be removed on next major version
254+ m .Get ("/avatar" , func (ctx * context.Context ) {
255+ ctx .Redirect (setting .AppSubURL + "/user/settings" )
256+ })
257+ m .Get ("/email" , func (ctx * context.Context ) {
258+ ctx .Redirect (setting .AppSubURL + "/user/settings/account" )
259+ })
260+ m .Get ("/delete" , func (ctx * context.Context ) {
261+ ctx .Redirect (setting .AppSubURL + "/user/settings/account" )
262+ })
263+ m .Get ("/openid" , func (ctx * context.Context ) {
264+ ctx .Redirect (setting .AppSubURL + "/user/settings/security" )
265+ })
266+ m .Get ("/account_link" , func (ctx * context.Context ) {
267+ ctx .Redirect (setting .AppSubURL + "/user/settings/security" )
268+ })
251269 }, reqSignIn , func (ctx * context.Context ) {
252270 ctx .Data ["PageIsUserSettings" ] = true
253271 })
You can’t perform that action at this time.
0 commit comments