25
Persistent Links
complete
Andrew Betts
When i create links to another page title the link becomes broken if the page is then moved, (eg. linking to the page ID rather than the address)
T
Thomas Nilefalk
I think the title of this request has made Nicolas Giard to allow just that, persistent links. But the IDs are hard to get at, and are cumbersome to work with in the editor as you have to manually edit the links instead of using the built-in editor support for internal links. I think a better solution of the "broken links when moving page" is described here: https://requarks.canny.io/wiki/p/moving-a-page-should-update-links
Nicolas Giard
complete
Added back in 2.1 update.
Yves
Nicolas Giard: From a user perspective, links will still become broken if pages are moved in V2.5.144. Afaik, a normal user has no possibility to make links to IDs instead of page titles, nor has he the necessary ID.
Reconnecting links would be a highly appreciated feature, we are evaluating a new software for documentation and Wiki-JS seems to be the perfect candidate :)
Hein Thet Khin Zaw
Yves: how do you get the id of the page?
Michal
Hein Thet Khin Zaw: have you got any answer so far?
Benjamin Arner
Hein Thet Khin Zaw:
add an
/s
to page path after locale:wiki_URL/en/path_to_page --> wiki_URL/en
/s
/path_to_pageyou can see the id at top right. If you want this to be more accessible, ask for new feature
(more single character pages)
P
Peter Uithoven
Benjamin Arner: I think the single characters need to be added before the locale? At least that works for me. Could you double check?
Felipe Gomes de Melo
I know this is an old issue, but is there any progress with this request? This is useful also with shorten links for Twitter for example
Felipe Gomes de Melo
EDIT: It is already possible to do that with the endpoint /i/:id. It is not that easy to get a page id, but is a pretty simple way to solve this.
jon r
GitLab does this with issues, i.e. when you move them between projects or move the project. Links are updated in the issue description and in comments. This is possible, since it also keeps a record of the link network between them.
Nicolas Giard
An alternative page ID URL could be provided, however title based URLs will stay the default as this is the best for SEO and ease of use.
Peter Uithoven
Nicolas Giard: Could't id based urls be converted during a post processing step? Combining benefits of both worlds?
Nicolas Giard
Peter Uithoven: You can already use /i/123 to access any page by its ID.
Jamal Bernhard
Nicolas Giard: Yes, but unless there's an easier way, to get the ID you have to go to the administration area and look it up under "Pages" (and only admins can access that area, not all content creators). It would be great if the "Select a page" dialog had an option to insert the ID-based URL.
P
Peter Uithoven
Nicolas Giard: For an internal wiki SEO is of no concern. Making it easier for people to change urls is. I'd love a global setting for this, where I can choose how links are created by default. Either the full human readable urls or the id based urls.
I realize this is a different request, so I've opened a new one: https://js.wiki/feedback/p/setting-to-enable-id-based-links