We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fd13ca1 + 6e75ab9 commit 671c8d6Copy full SHA for 671c8d6
2 files changed
test/e2e/test_edge-cases.py
@@ -0,0 +1,9 @@
1
+from playwright.sync_api import Page, expect
2
+
3
+"""
4
+Checking for broken tag links with spaces in them
5
6
+def test_tag_broken_link_spaces(page: Page):
7
+ page.goto("/show/linux-unplugged/489/")
8
+ page.locator(".tag > a", has_text="linux unplugged").click()
9
+ expect(page.locator(".title", has_text="Tag: linux unplugged")).to_be_visible()
themes/jb/layouts/partials/episode/tags.html
@@ -1,6 +1,6 @@
{{ range $tag := . }}
<span class="tag">
<!-- urlquery found here: https://discourse.gohugo.io/t/url-encoding-percent-encoding-with-hugo/16546/13 -->
- <a href="{{ `/tags/` }}{{ urlquery $tag }}/">{{$tag}}</a>
+ <a href="{{ `/tags/` }}{{ replace $tag " " "-" | urlquery }}/">{{$tag}}</a>
</span>
{{ end }}
0 commit comments