Skip to content

Commit

Permalink
Support old links to a specific region ranking.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertoPdRF committed Aug 13, 2019
1 parent aad8071 commit 1dc5eca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions WcaOnRails/app/controllers/results_controller.rb
Expand Up @@ -228,6 +228,8 @@ def compute_rankings_by_region

# Normalizes the params so that old links to rankings still work.
private def support_old_links!
params[:region]&.gsub!("+", " ")

params[:years]&.gsub!("+", " ")
if params[:years] == "all"
params[:years] = nil
Expand Down

0 comments on commit 1dc5eca

Please sign in to comment.