Skip to content
This repository was archived by the owner on Jan 5, 2019. It is now read-only.

Commit 20347f3

Browse files
committed
added redirect for ERA-AV
1 parent c6bf1d8 commit 20347f3

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

app/controllers/redirect_controller.rb

+5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
class RedirectController < ApplicationController
2+
3+
def era_av
4+
redirect_to "https://era-av.library.ualberta.ca"
5+
end
6+
27
def item
38
return render_404 ActiveRecord::RecordNotFound unless is_uuid
49
file = find_item_id

config/routes.rb

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
get 'users/:id/link_account' => 'users#link_account', as: 'link_account_user'
2828
get 'users/:id/set_saml' => 'users#set_saml', as: 'set_saml_user'
2929

30+
# redirect ERA AV to Avalon server
31+
get '/av' => 'redirect#era_av'
32+
3033
# redirect old item url to hydranorth
3134
get '/public/view/item/:uuid' => 'redirect#item'
3235
get '/public/view/item/:uuid/:ds' => 'redirect#datastream'

0 commit comments

Comments
 (0)