]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/users/new.html.erb
Stop using the session to persist the referer during login
[rails.git] / app / views / users / new.html.erb
index bf96c4577fe5ecceac067c553b38cb65c53bccb5..3eaf84c16348d107b0b019580ee5f0027e0a0ea2 100644 (file)
@@ -13,7 +13,7 @@
   <div class="header-illustration new-user-main auth-container mx-auto">
     <ul class="nav nav-tabs position-absolute bottom-0 px-3 fs-6 w-100">
       <li class="nav-item">
-        <%= link_to t("sessions.new.tab_title"), url_for(:action => :new, :controller => :sessions), :class => "nav-link" %>
+        <%= link_to t("sessions.new.tab_title"), url_for(:action => :new, :controller => :sessions, :referer => @referer), :class => "nav-link" %>
       </li>
       <li class="nav-item">
         <%= link_to t("users.new.tab_title"), "#", :class => "nav-link active" %>