code: public void changeCurrentAppState(String state) {
  
          String completeState = m_navigationStateManager.getState();
          String view = getViewName(completeState);
          String newCompleteState = view;
          if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(state)) {
              newCompleteState += NavigationState.PARAM_SEPARATOR + state;
          }
          m_navigationStateManager.setState(newCompleteState);
  
      }
docs: Call to add a new browser history entry.<p>
  
  @param state the current app view state