diff --git a/src/views/SpaceProposal.vue b/src/views/SpaceProposal.vue index 7be55230ada..ae83124a098 100644 --- a/src/views/SpaceProposal.vue +++ b/src/views/SpaceProposal.vue @@ -59,7 +59,10 @@ async function loadProposal() { loadingProposal.value = true; proposal.value = await getProposal(id); // Redirect to 404 page if proposal doesn't belong to current space - if (!proposal.value || props.space.id !== proposal.value.space.id) { + if ( + !proposal.value || + props.space.id.toLowerCase() !== proposal.value.space.id.toLowerCase() + ) { router.push({ name: 'error-404' }); } loadingProposal.value = false; diff --git a/src/views/SpaceProposals.vue b/src/views/SpaceProposals.vue index 3ec70acfdad..3aaf607b3cd 100644 --- a/src/views/SpaceProposals.vue +++ b/src/views/SpaceProposals.vue @@ -42,11 +42,14 @@ const subSpaces = computed( const spaceProposals = computed(() => { if (domain) return clone(store.space.proposals).filter( - proposal => proposal.space.id === props.space.id + proposal => + proposal.space.id.toLowerCase() === props.space.id.toLowerCase() ); return clone(store.space.proposals).filter(proposal => - [props.space.id, ...subSpaces.value].includes(proposal.space.id) + [props.space.id.toLowerCase(), ...subSpaces.value].includes( + proposal.space.id.toLowerCase() + ) ); }); diff --git a/src/views/SpaceView.vue b/src/views/SpaceView.vue index e1b8ea23dfe..77b929dd380 100644 --- a/src/views/SpaceView.vue +++ b/src/views/SpaceView.vue @@ -22,11 +22,11 @@ if (aliasedSpace) { const spaceKey = computed(() => aliasedSpace || domain || route.params.key); const space = computed(() => - extentedSpaces.value?.find(s => s.id === spaceKey.value) + extentedSpaces.value?.find(s => s.id === spaceKey.value.toLowerCase()) ); onMounted(async () => { - await loadExtentedSpaces([spaceKey.value]); + await loadExtentedSpaces([spaceKey.value.toLowerCase()]); if (!space.value) { router.push('/'); }