Commit 902354fc authored by dindigala's avatar dindigala
Browse files

fix: navigating from search breadcrumb to website

parent e9e7c28b
Pipeline #217786 passed with stages
in 4 minutes and 49 seconds
......@@ -18,7 +18,7 @@
>
<a
:class="$q.dark.isActive ? 'text-dark' : 'text-white'"
:href="`${config.breadcrumbNavigation.website}`"
:href="redirectUrl"
class="header-links"
>
<q-icon
......@@ -34,7 +34,7 @@
>
<a
:class="$q.dark.isActive ? 'text-dark' : 'text-white'"
:href="`${config.breadcrumbNavigation.website}search.html?searchTerm=${searchTerm}`"
:href="`${redirectUrl}?searchTerm=${searchTerm}`"
class="header-links"
>
<q-icon
......@@ -70,6 +70,9 @@ export default {
},
},
computed: {
redirectUrl() {
return this.$route.query.redirectUrl || this.config.breadcrumbNavigation.website;
},
searchTerm() {
return this.$route.query.searchTerm;
},
......
......@@ -31,7 +31,7 @@
-->
<script id="tido-config" type="application/json">
{
"entrypoint": "",
"entrypoint": "https://ahikar-dev.sub.uni-goettingen.de/api/textapi/ahikar/arabic-karshuni/collection.json",
"annotations": {
"show": true,
"types": [
......@@ -125,7 +125,7 @@
"show": true,
"title_homepage_key": "title_homepage",
"title_viewer_key": "title_viewer",
"website": "https://ahikar.sub.uni-goettingen.de"
"website": "https://ahikar.sub.uni-goettingen.de/website/"
}
}
</script>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment