eZpedia : The Free eZ Publish CMS Documentation Encyclopedia

Learning: Managing and Cleaning Nice Urls

Problem

I have a user who deleted a page, then added a new one to replace it (with the same name). We have nice urls, and the former url was

/about_us/activity

. When he deleted that and added the new page, the new one’s URL is

about_us/activity__1

Does anyone know how to affect this name, and how to change it back to the original? I suppose I could try to use a redirect, but it would be cleaner if we could just change the page somehow to give it a clean url.

I will make sure the user knows not to delete and re-add pages in the future!

Solution

I personaly have encountered this ‘sideaffect’ from moving / renaming like named objects.

The solution I have found was to ...

1. rename the object to something unique (totaly different)
2. then (again) rename the object to something unique (what i want it to be called)

I just had to make sure I wasn’t renaming the object to anything another object was named in the same container (folder).

Special thanks to participants: Mark Marsiglio, kracker

References

Article provided by eZpedia

All text is available under the terms of the GNU Free Documentation License

Powered by eZ Publish 6.0.2stable

Hosted by USA eZ Publish Community Partner : Brookins Consulting