From 964ac1d3b453a4a9e5172276f3afe6ecdc430c1d Mon Sep 17 00:00:00 2001 From: Paul Lemus Date: Wed, 29 Nov 2023 14:25:07 -0800 Subject: [PATCH] AO3-6579 Set page_title to Create Account The heading in New User Registrations page says "Create Account", however the browser tab said "New Registration". In the new action of the controller, I added @page_title = 'Create Account' to make the browser tab match. Note: This is different from setting @title, which would change the heading. --- app/controllers/users/registrations_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/users/registrations_controller.rb b/app/controllers/users/registrations_controller.rb index 13f48b394b5..5f11db3c066 100644 --- a/app/controllers/users/registrations_controller.rb +++ b/app/controllers/users/registrations_controller.rb @@ -3,6 +3,7 @@ class Users::RegistrationsController < Devise::RegistrationsController before_action :configure_permitted_parameters def new + @page_title = "Create Account" # Displays "New Registration" otherwise super do |resource| if params[:invitation_token] @invitation = Invitation.find_by(token: params[:invitation_token])