(No) Opengraph meta data on login page

You’d have to edit login.html.erb in a plugin

It would probably be as simple as adding this (which is what we do in show.html.erb)

<% if @title %>
  <% content_for :title do %><%= @title %><% end %>
  <% content_for :head do %>
    <%= raw crawlable_meta_data(title: @title, description: SiteSetting.site_description) %>
  <% end %>
<% else %>
  <% content_for :head do %>
    <%= raw crawlable_meta_data(title: SiteSetting.title, description: SiteSetting.site_description) %>
  <% end %>
<% end %>

I think all the data that gets used for OG Meta tags is already present on the login page… so I don’t think it’s omitted for privacy reasons or anything? Seems like we should add it.

7 Likes