diff --git a/client/app/avalanchecanada/redirect/redirect.js b/client/app/avalanchecanada/redirect/redirect.js new file mode 100644 index 000000000..7ca45cd90 --- /dev/null +++ b/client/app/avalanchecanada/redirect/redirect.js @@ -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'; + } + }); + }); diff --git a/client/index.html b/client/index.html index f284ecfbc..41e34bb96 100644 --- a/client/index.html +++ b/client/index.html @@ -145,6 +145,7 @@ + diff --git a/proxy.conf b/proxy.conf index a394daebc..952c07f99 100644 --- a/proxy.conf +++ b/proxy.conf @@ -23,6 +23,8 @@ server { } location /cherry-bowl { + rewrite /cherry-bowl/$ /index.html break; + rewrite /cherry-bowl$ /index.html break; rewrite /cherry-bowl/(.*) /$1 break; proxy_pass https://cherry-bowl.s3.amazonaws.com; } @@ -42,6 +44,9 @@ server { location /caf{ return 301 http://www.avalanche.ca/foundation; } + location /kakwa{ + return 301 http://www.yukonavalanche.ca/wx/weatherCAC.php?station=CACKAK; + } location /cac/about/(media|careers){ return 410;