Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dpc-portal/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ gem 'omniauth-rails_csrf_protection'
gem 'pg', '>= 0.18', '< 2.0'
gem 'puma', '~> 6.4.3'
gem 'rack', '>= 3.2.3'
gem 'rack-rewrite', '~> 1.5'
gem 'rack-session', '>= 2.1.1'
gem 'railties', '~> 8.0.2.1'
gem 'rexml', '>= 3.4.2'
Expand Down
2 changes: 2 additions & 0 deletions dpc-portal/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ GEM
base64 (>= 0.1.0)
logger (>= 1.6.0)
rack (>= 3.0.0, < 4)
rack-rewrite (1.5.1)
rack-session (2.1.1)
base64 (>= 0.1.0)
rack (>= 3.0.0)
Expand Down Expand Up @@ -635,6 +636,7 @@ DEPENDENCIES
pry-nav
puma (~> 6.4.3)
rack (>= 3.2.3)
rack-rewrite (~> 1.5)
rack-session (>= 2.1.1)
rails-controller-testing
railties (~> 8.0.2.1)
Expand Down
5 changes: 5 additions & 0 deletions dpc-portal/config.ru
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

require_relative 'config/environment'

require 'rack/rewrite'
use Rack::Rewrite do
r301 '/', '/portal'
end

# Ensure that route path helpers used in Engines are prefixed correctly
# with the relative_url_root.
#
Expand Down
Loading