public/js/editor.js
function(callback) {
          var page = apos.data.aposPages.page;
          var _id = page._id;
          $.get('/apos-pages/info', { _id: _id }, function(data) {
            var newPathname = data.slug.replace(/^\/\//, '/');
            apos.redirect(newPathname);
          }).error(function() {
            // If the page no longer exists, navigate away to home page
            apos.redirect('/');
          });
        }
function(callback) {
          var page = apos.data.aposPages.page;
          var _id = page._id;
          $.get('/apos-pages/info', { _id: _id }, function(data) {
            var newPathname = data.slug.replace(/^\/\//, '/');
            apos.redirect(newPathname);
          }).error(function() {
            // If the page no longer exists, navigate away to home page
            apos.redirect('/');
          });
        }
function ( callback ) { var page = apos . data . aposPages . page ; var _id = page . _id ; $ . get ( '/apos-pages/info' , { _id : _id } , function ( data ) { var newPathname = data . slug . replace ( / ^\/\/ / , '/' ) ; apos . redirect ( newPathname ) ; } ) . error ( function ( ) { // If the page no longer exists, navigate away to home page apos . redirect ( '/' ) ; } ) ; }
After a reorg the page URL may have changed, be prepared to navigate there or to the home page or just refresh to reflect possible new tabs
After a reorg the page URL may have changed be prepared to navigate there or to the home page or just refresh to reflect possible new tabs