Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Register
Sign in
Toggle navigation
Menu
Open sidebar
Tiger Ton
mastodon
Commits
31e23269
Unverified
Commit
31e23269
authored
2 years ago
by
Yamagishi Kazutoshi
Committed by
GitHub
2 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Fix `/web` prefix (#19468)
parent
8ebff0ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
config/routes.rb
+3
-3
config/routes.rb
with
3 additions
and
3 deletions
+3
-3
config/routes.rb
+
3
-
3
View file @
31e23269
...
...
@@ -681,9 +681,9 @@ Rails.application.routes.draw do
get
path
,
to:
'home#index'
end
get
'/web/(*any)'
,
to:
redirect
(
'/%{any}'
,
status:
302
),
as: :web
get
'/about'
,
to:
'about#show'
get
'/about/more'
,
to:
redirect
(
'/about'
)
get
'/web/(*any)'
,
to:
redirect
(
'/%{any}'
,
status:
302
),
as: :web
,
defaults:
{
any:
''
}
get
'/about'
,
to:
'about#show'
get
'/about/more'
,
to:
redirect
(
'/about'
)
get
'/privacy-policy'
,
to:
'privacy#show'
,
as: :privacy_policy
get
'/terms'
,
to:
redirect
(
'/privacy-policy'
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets