feat: shorten DID in public note URLs by stripping did:plc: prefix
URLs are now /pub/<base32id>/rkey instead of /pub/did:plc:<base32id>/rkey. Non-plc DIDs keep their method prefix (e.g. web:example.com).
This commit is contained in:
@@ -25,13 +25,13 @@ const routes: Array<RouteRecordRaw> = [
|
||||
component: () => import("@/views/PublicNoteListView.vue"),
|
||||
},
|
||||
{
|
||||
path: "/pub/:did",
|
||||
path: "/pub/:shortDid",
|
||||
name: "PublicNoteListByDidView",
|
||||
props: true,
|
||||
component: () => import("@/views/PublicNoteListByDidView.vue"),
|
||||
},
|
||||
{
|
||||
path: "/pub/:did/:rkey/:slug?",
|
||||
path: "/pub/:shortDid/:rkey/:slug?",
|
||||
name: "PublicNoteView",
|
||||
props: true,
|
||||
component: () => import("@/views/PublicNoteView.vue"),
|
||||
|
||||
Reference in New Issue
Block a user