fix ticket #3122 Back shows json instead of html