Avatar

Employee

You can use the Hash Router which plays well in the Unified Shell see https://reacttraining.com/react-router/web/api/HashRouter. The code you referenced is related to the Unified Shell history handling. Every time the Unified Shell detects a change in the history, it passes it down to your App e.g. so that you can change its hash router see https://github.com/AdobeDocs/project-firefly/blob/master/guides/exc_app/overview.md#history.