Technical support This forum is closed.
Version 1.x > Technical support > BUG: EnsureFriendlyURL View modes: 
User avatar
Member
Member
wtijsma - 6/22/2005 4:04:05 PM
   
BUG: EnsureFriendlyURL
Hi,

I'm having some trouble with your Functions.EnsureFriendlyURL.

Since you use MoveDirectory if an alias/aliaspath is changed and you catch the error and do nothing if it doesn't work, if the directory isn't accessible (which is good possible if the page is being requested at that time) it will fail without the user letting this know, or logging anything for that matter, it will cause 404's on our website.

I would like to suggest this instead of MoveDirectory:
- create the new path (+contents)
- delete the old path (+contents)

If the delete isn't possible, it should preferably log this somewhere, but isn't necessary at the moment.

I prefer having 'ghost' folders over 404's.

Thanks!

Wiebe Tijsma

User avatar
Guest
admin - 6/23/2005 10:16:18 AM
   
Re: BUG: EnsureFriendlyURL
Hi Wiebe,

thank you for your message. We will try to fix this in the nearest version.

Best Regards,