Skip to content

Commit 3b694eb

Browse files
committed
Fix duplicate PathBase in OpengraphImageUrl
1 parent 348227e commit 3b694eb

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## Unreleased
4+
5+
Fix duplicate `PathBase` in OpengraphImageUrl in page template view.
6+
37
## 2.2.0
48

59
Targets GOV.UK Frontend v5.2.0.

src/GovUk.Frontend.AspNetCore/Views/Shared/_GovUkPageTemplate.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
var htmlLang = ViewBag.HtmlLang ?? "en";
1717
var themeColor = ViewBag.ThemeColor ?? "#0b0c0c";
18-
var ogImage = ViewBag.OpengraphImageUrl ?? $"{Context.Request.Scheme}://{Context.Request.Host}{Context.Request.PathBase}{assetPath}/images/govuk-opengraph-image.png";
18+
var ogImage = ViewBag.OpengraphImageUrl ?? $"{Context.Request.Scheme}://{Context.Request.Host}{assetPath}/images/govuk-opengraph-image.png";
1919
}
2020
<!DOCTYPE html>
2121
<html lang="@htmlLang" class="govuk-template @ViewBag.HtmlClasses">

0 commit comments

Comments
 (0)