Fixes #6230. Added a unit test to control that, since the ajax rewrite, setting the...