Skip to content
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

Make it possible to create shorter URLs - even with last_segment_only setting #57

Open
sypets opened this issue Apr 23, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@sypets
Copy link

sypets commented Apr 23, 2021

I like this extension.

However, I am trying to figure out a way to use it and / or avoid current problems with 10.4 and redirects.

We recently updated to 10. 4 already had several cases with unusable pages due to several changes of URLs and automatically created redirects.

I thought this extension was an option, but we would like to continue to give editors the possibility of creating shorter URLs for a subpage, e.g. you have

/university/faculty1/institutea/project-something and want this and the subpages to start with:

/project-something

If you restrict the editing to the last segment, this is not possible. We could deactivate the setting basic.last_segment_only, but what I am looking for is not a hard restriction, but rather a "suggestion / hint" but still be able to replace complete path if clicking on a button if necessary.

I like the current behaviour with the restriction to the last segment because it makes it clearer that this segment belongs to this page, the rest depends on the parent pages and (usually) not the entire path should be changed.

My idea

This could be made configurable so current behaviour is still default.

You could just edit the last segment, but you can click on a button to get the option to edit the whole path.

Current behaviour:

image

E.g. add additional button "Edit entire path".

This way it is still intuitively clear that you should just edit the segment for this page by default, but you still have the option to do otherwise.

@wazum
Copy link
Owner

wazum commented Apr 27, 2021

@sypets I'll take a look at this feature request and get in touch later.

@wazum wazum added the enhancement New feature or request label Apr 27, 2021
@wazum
Copy link
Owner

wazum commented Sep 12, 2021

@sypets the behaviour described is already possible. Just set the parent slug as an administrator or an editor in the whitelisted group and lock it.
Then all other editors can only edit the last segment but have the short URL from the locked parent page.
Let me know if I didn't get your problem though ;-)

@wazum wazum added feedback needed and removed enhancement New feature or request labels Sep 12, 2021
@sypets
Copy link
Author

sypets commented Oct 31, 2021

I am very sorry for the late reply. I must have missed the notification.


What I am looking for is a way for the editors to either

a) Edit only the last segment of the URL, e.g. /path/page/mypage
b) or replace the slug with only 1 segment, e.g /mypage

So, they should not mess up the URL but they should have the possibility to create short URLs. I realize this is maybe not so easy to handle.

Just set the parent slug as an administrator or an editor in the whitelisted group and lock it. Then all other editors can only edit the last segment but have the short URL from the locked parent page.

The problem is - I can't give the editor (unless in whitelist group) the possibility to create a shorturl. I hope I have understood you correctly - I tested again with same result.


I will have another look at the extension and see if we can use it the way it is.

@wazum wazum added enhancement New feature or request and removed feedback needed labels Jan 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants