Removing the "2" in the url when re-creating a page

Permalink
I created a page called "profile" which I had deleted, then recreated later. Now I'm stuck with "profile2" in the url. Is there a way to remove the "2" without having to mess around in the database?

 
Mnkras replied on at Permalink Reply
Mnkras
yea thats a problem in the current version of C5 so i think you will have to go through the DB
ScottC replied on at Permalink Reply
ScottC
the two is triggered by collections/pages (they're blurred at this point, though collections can hold have area relations without being a full fledged page..but that is entirely off topic)

so when you get a 2, or 1, that means you already have a collectionID, and thus a pageID that already has that cHandle (collection handle) of that page already, even though it might not be active.

Usually to get around this you have to delete the previous versions of the conflicting page and delete the actual page, although this might have changed.

This also might be caused by the PagePaths db table, which you can edit manually as this is just a relational table, but I would tread lightly here unless you are fairly certain you know what you are doing and you have exhausted anything you can do through the ui.

Did that answer your question?
signals replied on at Permalink Reply
Thanks for the responses guys. I fixed the issue by removing it from the DB and then recreating it. I guess the lesson here is to not delete pages but to replace them, unless your 100% sure you dont need it.

Thanks for the help!