Fixing locale on the forwarding
This commit is contained in:
parent
a6179da298
commit
77ad544d98
@ -5,12 +5,12 @@ Rails.application.routes.draw do
|
|||||||
|
|
||||||
|
|
||||||
########### Forwarding action to old webapp ####################
|
########### Forwarding action to old webapp ####################
|
||||||
|
scope "(:locale)" do
|
||||||
# Forward Terms And Conditions page
|
# Forward Terms And Conditions page
|
||||||
get "legal" => redirect("http://webapp.heylium.io/fr/legal")
|
get "legal" => redirect { |params, request| "http://webapp.heylium.io/#{params[:locale]}/legal" }
|
||||||
# Forward Reset password page
|
# Forward Reset password page
|
||||||
get 'reset_password' => redirect { |params, request| "http://webapp.heylium.io/fr/reset_password?#{request.params.to_query}" }
|
get 'reset_password' => redirect { |params, request| "http://webapp.heylium.io/#{params[:locale]}/reset_password?#{request.params.to_query}" }
|
||||||
# Forward Confirm email actioàn
|
# Forward Confirm email actioàn
|
||||||
get 'confirm_email' => redirect { |params, request| "http://webapp.heylium.io/fr/confirm_email?#{request.params.to_query}" }
|
get 'confirm_email' => redirect { |params, request| "http://webapp.heylium.io/#{params[:locale]}/confirm_email?#{request.params.to_query}" }
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user