@social-mail/social-mail-client 1.2.594 → 1.2.595
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/public/channel/ChannelView.pack.js +4 -4
- package/dist/public/channel/ChannelView.pack.js.map +1 -1
- package/dist/public/channel/ChannelView.pack.min.js +1 -1
- package/dist/public/channel/ChannelView.pack.min.js.map +1 -1
- package/dist/public/channel/UrlService.js +4 -4
- package/dist/public/channel/UrlService.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/public/channel/UrlService.ts +4 -4
|
@@ -24422,7 +24422,7 @@ System.register(["../../common/Slugger", "../../common/TestMode", "../../common/
|
|
|
24422
24422
|
if (AppLocation.isLocalTesting) {
|
|
24423
24423
|
return `?detail=${cid}/${slug}`;
|
|
24424
24424
|
}
|
|
24425
|
-
return
|
|
24425
|
+
return `/${cid}/${slug}`;
|
|
24426
24426
|
},
|
|
24427
24427
|
toTagUrl({
|
|
24428
24428
|
tag: {
|
|
@@ -24440,7 +24440,7 @@ System.register(["../../common/Slugger", "../../common/TestMode", "../../common/
|
|
|
24440
24440
|
return `?detail=${cid}/tags/${name}`;
|
|
24441
24441
|
}
|
|
24442
24442
|
name = encodeURI(name);
|
|
24443
|
-
return
|
|
24443
|
+
return `/${cid}/tag/${name}`;
|
|
24444
24444
|
},
|
|
24445
24445
|
getParameters() {
|
|
24446
24446
|
var _a, _b;
|
|
@@ -24448,13 +24448,13 @@ System.register(["../../common/Slugger", "../../common/TestMode", "../../common/
|
|
|
24448
24448
|
let pathname = url === null || url === void 0 ? void 0 : url.pathname;
|
|
24449
24449
|
const detail = url.searchParams.get("detail");
|
|
24450
24450
|
if (detail) {
|
|
24451
|
-
pathname = "/
|
|
24451
|
+
pathname = "/" + detail;
|
|
24452
24452
|
}
|
|
24453
24453
|
const {
|
|
24454
24454
|
1: channel,
|
|
24455
24455
|
2: p1,
|
|
24456
24456
|
3: p2
|
|
24457
|
-
} = (_b = /^\/
|
|
24457
|
+
} = (_b = /^\/([^\/]+)\/([^\/]+)\/?([^\/]+)?\/?/.exec(pathname)) !== null && _b !== void 0 ? _b : [];
|
|
24458
24458
|
let tag = null;
|
|
24459
24459
|
let author = null;
|
|
24460
24460
|
let slug = p1;
|