Skip to content
Snippets Groups Projects
Commit eada1d46 authored by Manikanth Dindigala's avatar Manikanth Dindigala
Browse files

fix: linking back to the url from where we came from

parent 1630b81d
Branches
Tags
1 merge request!49fix: linking back to the url from where we came from
Pipeline #217785 failed
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<v-list-item <v-list-item
v-for="(item, index) in editions" v-for="(item, index) in editions"
:key="index" :key="index"
:href="item.to" :href="item.to + path"
> >
<v-list-item-title>{{ item.title }}</v-list-item-title> <v-list-item-title>{{ item.title }}</v-list-item-title>
</v-list-item> </v-list-item>
...@@ -91,5 +91,10 @@ export default { ...@@ -91,5 +91,10 @@ export default {
{ title: 'Related Literature', to: '/relatedliterature.html' }, { title: 'Related Literature', to: '/relatedliterature.html' },
], ],
}), }),
computed:{
path(){
return window.location.origin + this.$route.path;
}
},
} }
</script> </script>
...@@ -59,7 +59,7 @@ export default { ...@@ -59,7 +59,7 @@ export default {
} else if (item.lang === 'syc') { } else if (item.lang === 'syc') {
language = 'syriac' language = 'syriac'
} }
return `${this.viewerBaseUrl}/${language}/#/?itemurl=${item.item}&source=external&searchTerm=${item.searchTerm}`; return `${this.viewerBaseUrl}/${language}/#/?itemurl=${item.item}&source=external&searchTerm=${item.searchTerm}&redirectUrl=${window.location.href.replace(/\?(.*)/g,'')}`;
}, },
}, },
watch: { watch: {
......
import {baseUrlViewer} from "./constants"; import {baseUrlViewer} from "./constants";
export default [ export default [
{ title: 'Syriac Texts', to: baseUrlViewer + '/syriac/#/?source=external' }, { title: 'Syriac Texts', to: baseUrlViewer + '/syriac/#/?source=external&redirectUrl=' },
{ title: 'Arabic and Kashuni Texts', to: baseUrlViewer + '/arabic-karshuni/#/?source=external' }, { title: 'Arabic and Kashuni Texts', to: baseUrlViewer + '/arabic-karshuni/#/?source=external&redirectUrl=' },
]; ];
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment