Skip to content

Commit

Permalink
Add absolute canonical / alternate links
Browse files Browse the repository at this point in the history
  • Loading branch information
0x1eef committed Oct 7, 2023
1 parent d7490a3 commit 4f4b5a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/html/pages/surah/stream.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
<link
rel="canonical"
hreflang="<%= context.locale %>"
href="/<%= context.locale %>/<%= context.surah.slug %>/"
href="https://al-quran.reflectslight.io/<%= context.locale %>/<%= context.surah.slug %>/"
/>
<% context.locales.each do |locale| %>
<link
rel="alternate"
type="text/html"
hreflang="<%= locale %>"
href="/<%= locale %>/<%= context.surah.slug %>/"
href="https://al-quran.reflectslight.io/<%= locale %>/<%= context.surah.slug %>/"
/>
<% end %>
<%= opengraph(context) %>
Expand Down

0 comments on commit 4f4b5a2

Please sign in to comment.