BUG: redirect to pages overview not working from page edit view #49

Merged
merged 1 commit into from Sep 6, 2012

Projects

None yet

2 participants

@forsdahl
Contributor
forsdahl commented Sep 3, 2012

The redirect to pages overview was not working because the pages overview and page edit views
share the same session namespace, and therefore the checks to see if we need to redirect to
pages overview (i.e. if there is a translated record for the current page) matched also for
the redirected request.

Fixed by checking if we already are on the CMSPagesController before redirecting to it.

@forsdahl forsdahl BUG: redirect to pages overview not working from page edit view
The redirect to pages overview was not working because the pages overview and page edit views
share the same session namespace, and therefore the checks to see if we need to redirect to
pages overview (i.e. if there is a translated record for the current page) matched also for
the redirected request.

Fixed by checking if we already are on the CMSPagesController before redirecting to it.
451576f
@chillu chillu merged commit 670575c into silverstripe:master Sep 6, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment