From f5213227833d1b1d40103b1d066f9d47e2ed132a Mon Sep 17 00:00:00 2001 From: Donovan Daniels Date: Tue, 7 May 2024 20:45:25 -0500 Subject: [PATCH] preserve extension and query in oceanic latest link --- app/controllers/oceanic_ws/docs_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/oceanic_ws/docs_controller.rb b/app/controllers/oceanic_ws/docs_controller.rb index 336acbd..c3681ed 100644 --- a/app/controllers/oceanic_ws/docs_controller.rb +++ b/app/controllers/oceanic_ws/docs_controller.rb @@ -17,7 +17,7 @@ module OceanicWs end def latest - redirect_to("/#{latest_version}#{params[:other]}") + redirect_to("/#{latest_version}#{request.fullpath[("/latest".length)..]}") end private