diff --git a/app.rb b/app.rb index cefcb6a..56f7c9a 100644 --- a/app.rb +++ b/app.rb @@ -499,20 +499,20 @@ post '/repository/:id/delete' do redirect '/repository' end -get '/labelhaus' do - redirect '/labelhaus/' +get '/labelburg' do + redirect '/labelburg/' end %w[get post put delete].each do |verb| - send(verb, '/labelhaus/*') do - proxy_to_brother('/labelhaus', '/' + params[:splat].first) + send(verb, '/labelburg/*') do + proxy_to_brother('/labelburg', '/' + params[:splat].first) end end -# Its old address, e.g. in bookmarks +# Its old addresses, e.g. in bookmarks %w[get post put delete].each do |verb| - send(verb, %r{/brother(/.*)?}) do - path = '/labelhaus' + (params[:captures].first || '/') + send(verb, %r{/(?:brother|labelhaus)(/.*)?}) do + path = '/labelburg' + (params[:captures].first || '/') redirect(request.query_string.empty? ? path : "#{path}?#{request.query_string}", 308) end end diff --git a/views/_brother_bar.erb b/views/_brother_bar.erb index a0b1ec5..2bc17e3 100644 --- a/views/_brother_bar.erb +++ b/views/_brother_bar.erb @@ -12,7 +12,7 @@