Permalink
Browse files

Merge pull request #49 from creamarketing/pages-overview-redirect

BUG: redirect to pages overview not working from page edit view
  • Loading branch information...
2 parents 7a6e495 + 451576f commit 670575c18ae44b5d63381f875c0053c4da670fb4 @chillu chillu committed Sep 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 code/controller/TranslatableCMSMainExtension.php
@@ -49,7 +49,7 @@ function init() {
$transPage->ID
// ?locale will automatically be added
));
- } else {
+ } else if ($this->owner->class != 'CMSPagesController') {
// If the record is not translated, redirect to pages overview
return $this->owner->redirect(Controller::join_links(
singleton('CMSPagesController')->Link(),

0 comments on commit 670575c

Please sign in to comment.