Merge pull request #1010 from Retrospring/fix/friends-redir

Remove page parameter from `user/friends` redirects
This commit is contained in:
Georg Gadinger 2023-01-28 12:11:53 +01:00 committed by GitHub
commit 4dcc5dea55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -157,14 +157,14 @@ Rails.application.routes.draw do
get "/@:username/q/:id", to: "question#show", as: :question
get "/@:username/followers", to: "user#followers", as: :show_user_followers
get "/@:username/followings", to: "user#followings", as: :show_user_followings
get "/@:username/friends", to: redirect("/@%{username}/followings/p/%{page}")
get "/@:username/friends", to: redirect("/@%{username}/followings")
get "/@:username/questions", to: "user#questions", as: :show_user_questions
get "/:username", to: "user#show", as: :user_alt
get "/:username/a/:id", to: "answer#show", as: :answer_alt
get "/:username/q/:id", to: "question#show", as: :question_alt
get "/:username/followers", to: "user#followers", as: :show_user_followers_alt
get "/:username/followings", to: "user#followings", as: :show_user_followings_alt
get "/:username/friends", to: redirect("/%{username}/followings/p/%{page}")
get "/:username/friends", to: redirect("/%{username}/followings")
get "/:username/questions", to: "user#questions", as: :show_user_questions_alt
get "/feedback/consent", to: "feedback#consent", as: "feedback_consent"