Skip to content

Commit

Permalink
Merge pull request #7563 from GSA/nl-fix-og-url
Browse files Browse the repository at this point in the history
Added hostname to og:url to include top level domain
  • Loading branch information
ToniBonittoGSA authored May 29, 2024
2 parents 5b1a6b8 + 5a03b89 commit 57645f3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
title: "Digital.gov"
baseURL: "/"
baseURL: "https://digital.gov"
languageCode: "en-us"
theme: "digital.gov"
themesDir: "./themes"
Expand Down Expand Up @@ -157,5 +157,5 @@ menu:
Weight: 2
- Name: "Contact Us"
Identifier: "contact"
URL: "/about/contact/"
URL: "/about/contact/"
Weight: 3
2 changes: 1 addition & 1 deletion themes/digital.gov/layouts/partials/core/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
content="{{- $.Params.summary | default $.Site.Params.description | markdownify -}}"
/>
<meta property="og:type" content="{{- $.Scratch.Get "pagetype" -}}" />
<meta property="og:url" content="{{- .Permalink -}}" />
<meta property="og:url" content="{{- .Permalink | absURL -}}" />
<meta property="og:site_name" content="Digital.gov" />
<meta name="robots" content="index, follow" />
<meta property="og:locale" content="en_US" />
Expand Down
2 changes: 1 addition & 1 deletion themes/digital.gov/layouts/partials/core/notice-bar.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{- $current := "https://digital.gov" -}}
{{- if eq ($.Scratch.Get "env") "site" -}}
{{- else -}}
{{- if eq (printf "%v" $.Site.BaseURL) "//localhost:1313/" -}}
{{- if eq (printf "%v" $.Site.BaseURL) "http://localhost:1313/" -}}
{{- else -}}
<section class="notice-bar">
<div class="grid-container grid-container-desktop">
Expand Down

0 comments on commit 57645f3

Please sign in to comment.