Forums / General / Getting rid of "__1" in urls
Deane Barker
Wednesday 24 August 2005 1:58:57 pm
I had two objects named the same thing ("residential") in the same location in the subtree. So the URL for the second object is:
/residential__1
I deleted the first one, but the second one still has the "__1" suffix on it.
How can I get rid of this and have it revert to just "residential"? I need to somehow tell the system that the first node named "residential" is gone and the second node can use that namespace now.
Deane
Mark Marsiglio
Wednesday 24 August 2005 5:22:41 pm
I think you just need to run the updateniceurls.php script in the updates/common/scripts folder. Look in the upgrade docs for syntax to run (can't remember which version it was in - probably 3.5)
or here - http://ez.no/community/forum/developer/update_common_scripts/re_update_common_scripts
http://www.thinkcreative.com Turning Ideas Into Strategic Solutions
Thursday 25 August 2005 12:37:06 pm
Thanks for the response, Mark. Sadly, that didn't change anything.
Xavier Dutoit
Friday 26 August 2005 12:13:07 am
Have you emptied the trash ?
When you delete an object and put it into the trash, it keeps its url (/residential).
Erase it from the cache and it should do the trick.
Alternatively, you could rename residential (with url __1) to temp save, and then change it again to residential. The url shouldn't have the __1 at the end.
X+
http://www.sydesy.com
Friday 26 August 2005 7:28:04 am
Yeah, emptied the trash, cleared the cache, edited and saved the object, cleared the cache again, ran the update script again, cleared the cache again...nothing.
I just won't let go of that URL.
Nathan Kelly
Monday 10 October 2005 12:19:29 am
Had the same problem, Xavier's idea worked perfectly, just change the name of the node then clear cache, trash and drafts then rename it to the original.
Problem solved!
Pardon me while I burst into flames...
Bruce Morrison
Monday 10 October 2005 4:48:12 pm
Can someone from eZ add this to the FAQs??? and make them visiable in the community section of the site instead of being hidden under Products?
http://ez.no//products/ez_publish_cms/documentation/faq
CheersBruce
My Blog: http://www.stuffandcontent.com/ Follow me on twitter: http://twitter.com/brucemorrison Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish