If the app defines a <base href='/basepath/'>, state transitions work within the app. However if the user bookmarks or refreshes the page, the state is not matched properly.
Apparently PathLocationStrategy.path() does not strip out the basePath, so we need to do that manually.