This commit is contained in:
syuilo 2026-05-31 11:30:32 +09:00
commit 814bf357ca
4 changed files with 6 additions and 6 deletions

View file

@ -11,7 +11,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<MkPagination v-slot="{items}" :paginator="paginator">
<div class="_gaps_s">
<div v-for="room in items" :key="room.id">
<MkA :to="'/rooms/' + room.id">
<MkA :to="'/rooms/r/' + room.id">
<div>{{ room.name }}</div>
</MkA>
</div>
@ -132,7 +132,7 @@ async function create() {
visibility: 'public',
});
router.push('/rooms/:roomId', {
router.push('/rooms/r/:roomId', {
params: {
roomId: room.id,
},

View file

@ -605,7 +605,7 @@ function showOtherMenu(ev: PointerEvent) {
action: async () => {
os.post({
initialText: `${props.room.name} by @${props.room.user.username}
${url}/rooms/${props.room.id}`,
${url}/rooms/r/${props.room.id}`,
instant: true,
});
},

View file

@ -747,9 +747,9 @@ SPDX-License-Identifier: AGPL-3.0-only
</MkFolder>
</SearchMarker>
<SearchMarker v-slot="slotProps" :keywords="['world', 'room']">
<SearchMarker v-slot="slotProps" :keywords="['world', 'rooms']">
<MkFolder :defaultOpen="slotProps.isParentOfTarget">
<template #label><SearchLabel>World / Room</SearchLabel></template>
<template #label><SearchLabel>World / Rooms</SearchLabel></template>
<template #icon><SearchIcon><i class="ti ti-buildings"></i></SearchIcon></template>
<div class="_gaps_m">

View file

@ -601,7 +601,7 @@ export const ROUTE_DEF = [{
path: '/rooms',
component: page(() => import('@/pages/rooms/index.vue')),
}, {
path: '/rooms/:roomId',
path: '/rooms/r/:roomId',
component: page(() => import('@/pages/rooms/room.vue')),
}, {
path: '/debug',