Skip to content

Commit

Permalink
use base url
Browse files Browse the repository at this point in the history
  • Loading branch information
hry-gh committed May 27, 2024
1 parent e6104c9 commit b1a4768
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
const transformResult = (string) => {
return `${document.location.origin}/${string}`
}
stork.register("ref-search", `${document.location.origin}/search.st`, {showProgress: false, transformResultUrl: transformResult});
stork.register("ref-search", "{{config.base_url | safe}}/search.st", {showProgress: false, transformResultUrl: transformResult});
</script>
</body>

Expand Down
2 changes: 1 addition & 1 deletion templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{% block header %}
<h1 class="title text-3xl">
{{ macros::render_page_parent_type(page=page, skip_level=0) }} | {{ page.title }}
{{ macros::render_page_parent_type(page=page, skip_level=0) }} {{ page.title }}
</h1>
{% endblock header %}

Expand Down

0 comments on commit b1a4768

Please sign in to comment.