File tree 1 file changed +18
-0
lines changed
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) {
248
248
m .Post ("/keys/delete" , user .DeleteKey )
249
249
m .Get ("/organization" , user .SettingsOrganization )
250
250
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
+ })
251
269
}, reqSignIn , func (ctx * context.Context ) {
252
270
ctx .Data ["PageIsUserSettings" ] = true
253
271
})
You can’t perform that action at this time.
0 commit comments