Skip to content

Commit

Permalink
Use relative path for example preview iframe and link
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Dec 8, 2023
1 parent 7d993de commit 6ea9221
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/_components/example/template.njk
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
{% endset %}

{%- set previewHtml -%}
<iframe class="app-example__frame" data-module="app-example-frame" src="/examples/{{ params.component }}"></iframe>
<iframe class="app-example__frame" data-module="app-example-frame" src="examples/{{ params.component }}"></iframe>
<p class="app-example__toolbar">
<a class="app-example__new-window" href="/examples/{{ params.component }}" target="_blank">Open this example in a new tab</a>
<a class="app-example__new-window" href="examples/{{ params.component }}" target="_blank">Open this example in a new tab</a>
</p>
{%- endset %}

Expand Down

0 comments on commit 6ea9221

Please sign in to comment.