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