|
@@ -8,11 +8,11 @@
|
|
|
<f7-preloader v-if="loading" />
|
|
|
</div>
|
|
|
<f7-list v-else>
|
|
|
- <f7-list-item title="Diretta" :link="`/radio/${radioId}/live`" />
|
|
|
- <f7-list-item title="Trasmissioni" :link="`/radio/${radioId}/shows`" />
|
|
|
+ <f7-list-item title="Diretta" :link="`/radio/${encodeURIComponent(radioUrl)}/live`" />
|
|
|
+ <f7-list-item title="Trasmissioni" :link="`/radio/${encodeURIComponent(radioUrl)}/shows`" />
|
|
|
<f7-list-item
|
|
|
title="Contatti"
|
|
|
- :link="`/radio/${radioId}/contacts`"
|
|
|
+ :link="`/radio/${encodeURIComponent(radioUrl)}/contacts`"
|
|
|
disabled
|
|
|
/>
|
|
|
</f7-list>
|
|
@@ -27,16 +27,16 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
loading: true,
|
|
|
- radioId: null,
|
|
|
+ radioUrl: null,
|
|
|
radio: { name: "" },
|
|
|
Radio: {},
|
|
|
};
|
|
|
},
|
|
|
props: { f7route: Object, f7router: Object },
|
|
|
async mounted() {
|
|
|
- this.radioId = this.f7route.params.radioName;
|
|
|
+ this.radioUrl = decodeURIComponent(this.f7route.params.radioUrl);
|
|
|
try {
|
|
|
- this.Radio = await radiomanifest.get(this.f7route.params.radioName);
|
|
|
+ this.Radio = await radiomanifest.get(this.radioUrl);
|
|
|
this.loading = false;
|
|
|
} catch (e) {
|
|
|
console.error("le cose non vanno mai sempre bene!", e);
|