(no title)
imrehg | 1 year ago
notion.so/:account/Current-Name-of-Page-:pageid
where the name changes if the page is renamed, but the redirect works, as the page ID is unchanged. In fact, one can just use notion.so/:account/:pageid
and gets redirected to the right page, or even notion.so/:account/Anything-else-:pageid
works too...This is very handy in my use cases, when various Notion data is extracted into another tool, reassembled, and then needed to have a link to the original page. I don't need to worry about the page's name, or how that name gets converted into the URL, or any race conditions....
The page hierarchy is then just within the navigaton, not in the URL, so moved pages continue to work too (even if this looks like a flatter hierarchy than it really is).
I'm sure there are plenty of drawbacks, but I've found it an interesting, pragmatic solution.
didntcheck|1 year ago
The fact that so many sites do this (including "normie" news sites) shows that site designers clearly believe users want and expect "informational"/"denormalized" URLs, rather than /?id=123
simonw|1 year ago
The better way to implement this is to serve a 301 redirect if the words in the URL don't match the expected ones, that avoids trickery and also removes the risk of the same page being accidentally indexed as duplicate content.
KMnO4|1 year ago
So, if Paul Graham hosted his site via Notion (he doesn't), I could link someone to `https://paulgraham.com/Why-I-Hate-Hackernews-be2839f0-e145-4...` and it would show my (fake) page on PG's domain.
dgb23|1 year ago
bathtub365|1 year ago
dijit|1 year ago
Kinda smart.
Also; taking it from the end means you only need to parse the string as an offset from the end. It can make load balancing much faster in theory.
toasterlovin|1 year ago
aqfamnzc|1 year ago
Kiro|1 year ago