Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MINOR Redirecting page links in CMSPagesController to CMSPageEditCont…

…roller (admin/pages/show/99 to admin/page/show/99)
  • Loading branch information...
commit c4a99dfc095d85ec639d7e9523a2cf683c6cbcbb 1 parent c4c3d21
@chillu chillu authored
View
9 code/controller/CMSPagesController.php
@@ -21,4 +21,13 @@ function show($request) {
}
}
+ function Link($action = null) {
+ // Special case: All show links should redirect to the page edit interface instead (mostly from tree nodes)
+ if(preg_match('/^show/', $action)) {
+ return singleton('CMSPageEditController')->Link($action);
+ } else {
+ return parent::Link($action);
+ }
+ }
+
}
View
7 javascript/CMSPagesController.Tree.js
@@ -1,7 +0,0 @@
-(function($) {
- $('.cms-tree').bind('select_node.jstree', function(e, data) {
- var node = data.rslt.obj, url = $(node).find('a:first').attr('href');
- if(url && url != '#') document.location.href = url;
- return false;
- });
-}(jQuery));
Please sign in to comment.
Something went wrong with that request. Please try again.