-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #291 from alphagov/fix_apple_icon_redirects
Fix redirects for apple-touch icons
- Loading branch information
Showing
3 changed files
with
31 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
class IconRedirectsController < ApplicationController | ||
def show | ||
redirect_to view_context.asset_path(request.fullpath.to_s[1..-1]), :status => 301 | ||
redirect_to view_context.asset_path(request.path.to_s[1..-1]), :status => 301 | ||
end | ||
|
||
def apple_57_57 | ||
redirect_to view_context.asset_path('apple-touch-icon-57x57.png'), :status => 301 | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters