From 19257a7656c5c8ef4ef334a25e8b6cbc7dce23f2 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Fri, 24 Jun 2016 16:27:04 +0200 Subject: [PATCH] Added legacy URLs /without_screenshots and /with_screenshots --- config/routes.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/routes.rb b/config/routes.rb index ad07a4b..c2e9db3 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -29,6 +29,10 @@ Debshots::Application.routes.draw do get 'thumbnail/:name' => 'packages#thumbnail', as: :thumbnail_image, name: /[^\/]+/ get 'thumbnail-with-version/:name/:version' => 'packages#thumbnail_with_version', name: /[^\/]+/, version: /\S+/ + # Legacy URLs + get 'with_screenshots', to: redirect('/packages?show=with') + get 'without_screenshots', to: redirect('/packages?show=without') + # The priority is based upon order of creation: first created -> highest priority. # See how all your routes lay out with "rake routes".