diff --git a/app/views/layouts/_main_links.html.erb b/app/views/layouts/_main_links.html.erb index 75d515e36..6ec3071b5 100644 --- a/app/views/layouts/_main_links.html.erb +++ b/app/views/layouts/_main_links.html.erb @@ -1,6 +1,6 @@ <% if CurrentUser.is_anonymous? %> - <%= nav_link_to("Login", login_path(url: request.fullpath)) %> + <%= nav_link_to("Login", login_path(url: request.fullpath), rel: "nofollow") %> <% else %> <%= nav_link_to("My Account #{unread_dmail_indicator(CurrentUser.user)}", profile_path) %> <% end %> diff --git a/app/views/sessions/new.html.erb b/app/views/sessions/new.html.erb index 7ce1ffa31..c9f748da0 100644 --- a/app/views/sessions/new.html.erb +++ b/app/views/sessions/new.html.erb @@ -1,5 +1,6 @@ <% page_title "Login" %> <% meta_description "Login to #{Danbooru.config.app_name}" %> +<% canonical_url login_url %> <%= render "sessions/secondary_links" %>