-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Have the ablity to create aliases #13
Comments
Note that there is the possibility to manually do this. It's not a very nice UX, but it might be helpful for specific cases As stated in the documentation, the generated ID is stored on each page on an |
You could add a listener for |
You mean having this check in case users manually edit the pageID to add an alias? I think that could be confusing for users, unless they get some feedback about the operation being aborted. It also feels too much just for a workaround, the check will be done for the actual implementation I would leave the manual operation as it is. Since it involves manually editing the object, I think it's save to say it's just a workaround and it's for advanced users, so I feel it's their responsibility to make sure the alias doesn't exist. But I'll document this process to make sure the issues are known. |
Cancelling the event should give the user a message that saving failed, though I fear no reason is displayed. The check could work regardless how it is implemented in the end and could make sure that the user doesn't end up in an "invalid" state. If you want to make this less manual, a possibility would be to add a small UI for this in the page information tab. There is a UIXP. |
I think that for the actual implementation maybe we could do the check when we have the request to add the alias (we do this type of check for adding the generated pageID as well, to make sure that the random id is not already used), instead of listening to each Thanks for the idea to use this UIXP, seems like a good place for adding this feature! |
Right now, when you create a shortened URL (by using the
Get shortened URL
button), a random ID is associated to you page and is used for identifying it.It would be nice to be able to associate a specific alias when wanted, to have a friendlier URL (e.g.
http://localhost:8080/xwiki/rest/p/salesMeetingNotes
instead ofhttp://localhost:8080/xwiki/rest/p/1d83jf
)The difficulty of this task is creating a design that could incorporate this functionality, while also considering to not let users create duplicate aliases (same alias points to 2 or more pages)
The text was updated successfully, but these errors were encountered: