silverstripe/silverstripe-translatable — pull request #48 by forsdahl (2012-09-03 08:12:58+00:00)
Title: BUG: double ajax request for page editing in default locale

When editing a page in the default locale, a double ajax request was done for the editing page.
This was caused by no locale-parameter being set in this case, which caused the default locale
parameter to be added and a new ajax request was made due to this. The extra ajax request caused
the loading-animation to appear after the edit page was loaded, which looks weird.
Fixed by doing a redirect immediately the CMSPagesController is loaded and no locale is set, so
that the default locale parameter gets set at this stage.