Commit 2231341bc0bba5fa0121c041ed4184a9d81992d7
change router.sync.normalise normalisation of /:page style links
mix irving committed on 8/31/2017, 2:23:43 AMParent: eaa0057dcd22e8c2aa9e8478313043e59e443ff3
Files changed
router/sync/normalise.js | changed |
router/sync/normalise.js | |||
---|---|---|---|
@@ -11,9 +11,9 @@ | |||
11 | 11 … | if (isBlob(location)) return { blob: location } | |
12 | 12 … | if (isChannel(location)) return { channel: location } | |
13 | 13 … | if (isFeed(location)) return { feed: location } | |
14 | 14 … | if (isMsg(location)) return { key: location } | |
15 | - if (isPage(location)) return { page: location } | ||
15 … | + if (isPage(location)) return { page: location.substring(1) } | ||
16 | 16 … | } | |
17 | 17 … | ||
18 | 18 … | function isChannel (str) { | |
19 | 19 … | return typeof str === 'string' && str[0] === '#' && str.length > 1 | |
Built with git-ssb-web