code: private String getPath(CmsObject cms, HttpSession session) {
  
          CmsQuickLaunchLocationCache locationCache = CmsQuickLaunchLocationCache.getLocationCache(session);
          String page = locationCache.getPageEditorLocation(cms.getRequestContext().getSiteRoot());
          if (page == null) {
              try {
                  CmsResource mainDefaultFile = cms.readDefaultFile("/");
                  if (mainDefaultFile != null) {
                      page = cms.getSitePath(mainDefaultFile);
                  }
              } catch (CmsException e) {
                  LOG.error(e.getLocalizedMessage(), e);
              }
          }
          return page;
      }
docs: Returns the page editor path to open.<p>
  
  @param cms the cms context
  @param session the user session
  
  @return the path or <code>null</code>