Regarding to the code ( https://github.com/cakephp/cakephp/blob/master/lib/Cake/Controller/Component/RequestHandlerComponent.php#L253 ) it does not redirect for AJAX for example. One should probably do something similar for JSON and other format-specific requests.
Am Mittwoch, 23. April 2014 15:20:14 UTC+2 schrieb Jeremy Burns: > > Our iOS app now calls json extensions, which is great. But, if the app > does an internal redirect it loses the json extension and renders full html > instead of json. > > What is the best approach to keep the json extension throughout the > request lifecycle? > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
