Skip to content

Commit

Permalink
Merge pull request #75 from nhsuk/hotfix/fix-page-paths
Browse files Browse the repository at this point in the history
Remove use of the `url` filter
  • Loading branch information
davidhunter08 authored May 8, 2024
2 parents 4e6f997 + a2b134f commit 6a21069
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/_includes/example.njk
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<div class="app-example">
<span class="app-example__new-window">
<a href="{{ href | url }}" target="_blank">Open this example <span class="nhsuk-u-visually-hidden">({{ title }})</span> in a new window</a>
<a href="{{ href }}" target="_blank">Open this example <span class="nhsuk-u-visually-hidden">({{ title }})</span> in a new window</a>
</span>
<iframe
onload="this.style.height = this.contentWindow.document.documentElement.scrollHeight + 'px';"
class="app-example__frame"
scrolling="auto"
frameborder="0"
height="{{ height }}"
src="{{ href | url }}"
src="{{ href }}"
title="{{ title }}"
></iframe>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/_includes/layouts/component.njk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% set sidebar %}
{{ appSideNavigation({
classes: 'nhsuk-u-padding-top-6',
currentPath: page.url | url,
currentPath: page.url,
sections: [
{
heading: {
Expand Down

0 comments on commit 6a21069

Please sign in to comment.