Skip to content
Snippets Groups Projects
Commit c6edd979 authored by Hangzhi Yu's avatar Hangzhi Yu
Browse files

Allow for passing of query parameters to legacy iframe (for search page)

parent cfcc6562
No related branches found
No related tags found
2 merge requests!1123Resolve "Finalise Vuetify app as SPA",!1066Translations update from Weblate
Pipeline #104227 failed
......@@ -2,7 +2,7 @@
<div class="position: relative;">
<loading v-if="loading" />
<iframe
:src="'/django' + $route.path"
:src="'/django' + $route.path + queryString"
style="border: 0; margin: -12px"
width="100%"
:height="iFrameHeight + 'px'"
......@@ -25,6 +25,15 @@ export default {
components: {
Loading,
},
computed: {
queryString() {
let qs = "";
for (let queryObject in this.$route.query) {
qs += `${qs === "" ? "?" : "&"}${queryObject}=${this.$route.query[queryObject]}`;
};
return qs
},
},
methods: {
receiveMessage(event) {
if (!event.data.height) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment