diff options
author | Go MAEDA <maeda@farend.jp> | 2023-10-31 12:45:15 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-10-31 12:45:15 +0000 |
commit | c6fdc7db866aa1adac2ec24bfa8633840610ca76 (patch) | |
tree | 8f369376620596771f242a0523cf671c86cf4cd0 /app/controllers/repositories_controller.rb | |
parent | 146ee1cec427a507b61a05f5016d3e5f1eab2bdb (diff) | |
download | redmine-c6fdc7db866aa1adac2ec24bfa8633840610ca76.tar.gz redmine-c6fdc7db866aa1adac2ec24bfa8633840610ca76.zip |
Redirect to repositories#show after repository#fetch_changesets to avoid the user-visible browser URL (#39238).
Patch by Holger Just.
git-svn-id: https://svn.redmine.org/redmine/trunk@22414 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/repositories_controller.rb')
-rw-r--r-- | app/controllers/repositories_controller.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index 3fb69e8b2..b362bc152 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -103,7 +103,11 @@ class RepositoriesController < ApplicationController def fetch_changesets @repository.fetch_changesets if @project.active? && @path.empty? && !Setting.autofetch_changesets? - show + + redirect_to( + controller: :repositories, action: :show, + id: @project, repository_id: @repository.identifier_param + ) end def changes |