Skip to content

Commit

Permalink
Fix non-English characters being url encoded in breadcrumb (mmistakes…
Browse files Browse the repository at this point in the history
…#3819)

* Fix non-English characters being url encoded in breadcrumb

* Remove `| replace: '%20', ' ‘`
  • Loading branch information
boh5 authored and minyoongi96 committed Aug 26, 2024
1 parent 8aad203 commit 062daa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/breadcrumbs.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{% else %}
{% assign i = i | plus: 1 %}
<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<a href="{{ crumb | downcase | replace: '%20', '-' | prepend: path_type | prepend: crumb_path | relative_url }}" itemprop="item"><span itemprop="name">{{ crumb | replace: '-', ' ' | replace: '%20', ' ' | capitalize }}</span></a>
<a href="{{ crumb | downcase | replace: '%20', '-' | prepend: path_type | prepend: crumb_path | relative_url }}" itemprop="item"><span itemprop="name">{{ crumb | url_decode | replace: '-', ' ' | capitalize }}</span></a>
<meta itemprop="position" content="{{ i }}" />
</li>
<span class="sep">{{ site.data.ui-text[site.locale].breadcrumb_separator | default: "/" }}</span>
Expand Down

0 comments on commit 062daa6

Please sign in to comment.