-------------------------------- ROUTING with (page.js) -------------------------------- 
This is used for "path" routing method.
i.e. docma.app.routing.method = "path" and docma.app.server === "github"
or none

In this case, Docma generates directories with an index file for each
route. Index files will set a redirect path to sessionStorage and
meta-refresh itself to main (root) index file.

Then we'll read the redirect path from `sessionStorage` into memory and
reset the storage. Then redirect the SPA to the set path.

Note that if `.app.routing.method` is set to `"query"`, we don't need
this since, routing via query-string always operates on the main page
already.
@private

@returns {Boolean} - Whether the SPA is redirecting from a
sub-directory path.
function _redirecting() {
        if (PATH_ROUTING) {
            var redirectPath = sessionStorage.getItem('redirectPath') || null;
            if (redirectPath) {
                sessionStorage.removeItem('redirectPath');
                docma.info('Redirecting to:', redirectPath);
                page.redirect(redirectPath);
                return true;
            }
        }
        return false;
    }