Not sure if to report this as a feature request, or a bug. Anyway, the following scenario currently fails on this SQL error:
Repro:
- Use the "Move / Rename" action to move a page (tested on a page with children) to a new location. Select "Create an automatic redirect" before confirming the move. This succeeds.
- Use the "Move / Rename" action on the moved page once again and set the new location to the original location. This fails with the error(s) above.
It looks like what is needed here for the move/rename action is to recognize that there is already a page on the target location and that it contains just the redirect property which points to the page being moved. And to rewrite that page containing the redirect - instead of failing the move. I don't have enough insight though, so it might be possibly more complicated... Workaround: Delete all the existing redirect pages manually before proceeding with step 2. Tips on how to automate this step would also be great. |