2
0

Fix search params being dropped when redirected to non-deck path (#31984)

This commit is contained in:
Renaud Chaput
2024-09-25 15:35:37 +02:00
committed by GitHub
parent 83574f641a
commit 3dc4ddc663
4 changed files with 18 additions and 3 deletions

View File

@@ -83,6 +83,6 @@ class PermalinkRedirector
end
def path_segments
@path_segments ||= @path.delete_prefix('/deck').delete_prefix('/').split('/')
@path_segments ||= @path.split('?')[0].delete_prefix('/deck').delete_prefix('/').split('/')
end
end