From 320679cedd78a1e78eb2032984aaa90b9322b898 Mon Sep 17 00:00:00 2001 From: Roman Priesol Date: Mon, 9 Nov 2026 20:24:11 +0100 Subject: [PATCH] Labelburg instead of Labelhaus: the project was renamed again The proxy and links are below /labelburg, /labelhaus and /brother are redirected there. --- app.rb | 14 +++++++------- views/_brother_bar.erb | 2 +- views/_navbar.erb | 2 +- views/index.erb | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) 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 @@