From d45c6af8533dc7617fcb6d278b3d5b7cfc11c7c5 Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Sat, 28 Jan 2023 11:08:16 +0100 Subject: [PATCH] Remove page parameter from `user/friends` redirects --- config/routes.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 68958f72..7dca9c1a 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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"