From cb6d24dfca26ae502f409854d25aa16c9cd0e22b Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Mon, 4 Nov 2024 11:37:58 +0200 Subject: [PATCH] add canonical urls --- app/views/devise/sessions/new.html.erb | 1 + app/views/layouts/application.html.erb | 3 +++ 2 files changed, 4 insertions(+) diff --git a/app/views/devise/sessions/new.html.erb b/app/views/devise/sessions/new.html.erb index baca3e563..0cbd57e82 100644 --- a/app/views/devise/sessions/new.html.erb +++ b/app/views/devise/sessions/new.html.erb @@ -1,3 +1,4 @@ +<%= content_for(:canonical_url, new_user_session_url) %>
<%= render 'devise/shared/select_server' if Docuseal.multitenant? %>

<%= t('sign_in') %>

diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 4de5c8c76..590e0b23a 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -11,6 +11,9 @@ <% else %> <%= javascript_pack_tag 'application', defer: true %> <% end %> + <% if canonical_url = content_for(:canonical_url) %> + + <% end %> <%= stylesheet_pack_tag 'application', media: 'all' %> <%= render 'shared/posthog' if ENV['POSTHOG_TOKEN'] %> <%= render 'shared/plausible' if !signed_in? && ENV['PLAUSIBLE_DOMAIN'] %>