Folder document alias changed and won't rename back to original

Corey Cutting asked on April 23, 2014 12:20

We have run into a problem now on 2 different sites running Kentico 7.0.53.

We have a folder that was imported from an older 5.5 system called Images / Files that has a live url as Images---Files. We have this referenced through the site for images. Now what has happened rather suddenly without any changes that we are aware of is the live URL for the folder has become Images-Files. This has cause all the links to files in that folder to break. When I go to the folder and select Properties -> URLs and change the Document alias (which is now set too Images-Files) back to Images---Files, it immediately reverts back to Images-Files after the save.

I tried to create a new folder called Images---Files directly in the tree and while it was named correctly, the live URL for the folder ended up being Images-Files-(1).

Does anyone have any idea what might be causing this issue and how I can resolve it?

Recent Answers


Brenden Kehren answered on April 23, 2014 13:58

Are you using workflow or check-in/out? If so, make sure you are checking in and publishing as the changes won't take effect until those processes are complete.

I've come across something like this before as well and in a few instances the above was the solution. Other instances there was some other page causing problems with either a space at the end of the field that created the URL or some invalid HTML. You might need to check the database and take a look at the URLs in there. SELECT * FROM View_CMS_Tree_Joined WHERE NodeAliasPath like '/images%'

From there you should be able to see the path and any document name info. You may then have to manually modify the record (very carefully) or you might find there is a ghost record in there with the same info that was not deleted. I've seen this as well and I believe its caused from Content Staging errors.

0 votesVote for this answer Mark as a Correct answer

Corey Cutting answered on April 23, 2014 14:43

Hi Brenden,

Thanks for your reply. I'm using workflow for this and I have made sure about everything being published but I will definitely look through all the files for what you are talking about. I know which are the most recent files so I'll start with those.

Thanks again!

0 votesVote for this answer Mark as a Correct answer

Corey Cutting answered on April 23, 2014 18:37

Follow up:

I have a copy of the site in on test server and I just deleted everything that was under the Images-Files folder and still couldn't change the document alias. I deleted the folder itself and then recreated it and still wouldn't let me change the alias. I try creating a new and totally different folder called Test---Test and it still made into a test-test. Is this some sort of SEO URL rewriting thing? I don't have anything setup other than the default settings in the SEO and URLS section. If so, how can I bypass it?

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on April 24, 2014 09:21 (last edited on April 24, 2014 09:22)

Hi,

There is a web.config key for this since many customers required the multiple dashes to be replaced by single dash only. you need to set this web.config key to false:"CMSLimitUrlReplacements"

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.