diff --git a/src/components/WorshipRender.vue b/src/components/WorshipRender.vue index 7a1f0d0..c8774f0 100644 --- a/src/components/WorshipRender.vue +++ b/src/components/WorshipRender.vue @@ -92,8 +92,17 @@ export default { formatDate, async fetchWorships() { try { + const params = { ...(this.config || {}) }; + const currentPath = String(this.$route?.path || '').toLowerCase(); + const isNeighborhoodPage = currentPath.includes('/worship/neighborhood') || currentPath.includes('/worship/neighbor'); + if (isNeighborhoodPage) { + // Für die Nachbarschaftsseite ist das Flag maßgeblich; + // ein evtl. gesetzter Ortsfilter darf hier nicht blockieren. + params.neighborInvitation = true; + delete params.location; + } const response = await axios.get('/worships/filtered', { - params: this.config + params }); this.worships = response.data; } catch (error) {