-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fixes 404 errors for kakwa redirects - Links to same domain (eg: avalanche.ca) use client side routing so nginx redirects dont apply. Added kakwa reriect mirror to make blog links work
- Loading branch information
Will Harding
committed
Jan 7, 2016
1 parent
f0e04ea
commit 66eb923
Showing
3 changed files
with
19 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
'use strict'; | ||
|
||
angular.module('avalancheCanadaApp') | ||
.config(function ($stateProvider) { | ||
$stateProvider | ||
.state('ac.redirectKakwa', { | ||
url: '^/kakwa', | ||
controller: function($window) { | ||
$window.location.href = 'http://www.yukonavalanche.ca/wx/weatherCAC.php?station=CACKAK'; | ||
} | ||
}); | ||
}); |
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