cleaning nice urls

Author Message

Mark Marsiglio

Friday 18 February 2005 12:47:48 pm

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!

Thanks
Mark

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

kracker (the)

Sunday 27 February 2005 10:34:25 am

Greetings Mark,

I personally have encountered this 'side affect' from moving / renaming like named objects.

The solution I have found to this 'side affect' had been to ...
- rename the object to something unique (totally different)
- 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).

Happy Hacking
//kracker
I'm just your friendly neighborhood hacker ...

Counting Crows : I'm not sleeping ...

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Bruce Morrison

Sunday 27 February 2005 8:52:18 pm

Just run

update/common/scripts/updateniceurls.php

and make sure the old item is not in the trash (not sure if this actually has an effect but just in case :)

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.