Hello all,
As part of Loading... I started working on a design page https://design.xwiki.org/xwiki/bin/view/Proposal/Redirectdeletedpagelinktoanewpage
The task refers to the ability to provide a new target when you delete a page, since there could be internal or external links that now point to an empty page.
For this I propose 3 UI directions:
-
The first proposal is to be consistent with the move / rename of pages. The user will be able to select a new target page, using a page picker, with the options to update the links that point to the deleted page, and also to create an automatic redirect when the old page is accessed. As it is for rename / move, the
Update links
will be enabled by default, whileCreate an automatic redirect
is optional. If no page is specified, then not action is applied.
Idea:
-
An idea is to keep the delete process simpler, by only providing the option to update existing internal links to the delete page. As it is for the first option, there will be a page picker to select the new target page, with empty value for no action, and the
Update links
option, which will be enabled by default.
CONS : This proposal will not fix the problem of external links (e.g. bookmarks, links from emails), since no redirect will be added. The users will be notified that the page doesn’t exist.
Idea:
-
Similar to proposal 2, an idea will be to keep only the
Create an automatic redirect
option, also with a page picker and this option enabled by default.
By providing a redirect, both internal and external links will point now to the new target page, only that the internal links will actually remain the same (which is not clean and could introduce confusion at first)
Idea:
Note that I created a prototype design as guidance and some phrases, placeholders may change. Also, for the implementation I only added a few details on the design page, since more could be decided after.
Let me know what you think and if you have suggestions.
Thanks,
Lavinia