render() {
        if (this.state.initStatus === 'success') {
            return (
                <SentryErrorBoundary site={this.state.site}>
                    <AppContext.Provider value={this.getContextFromState()}>
                        <PopupModal />
                        <TriggerButton />
                        <Notification />
                    </AppContext.Provider>
                </SentryErrorBoundary>
            );
        }
        return null;
    }
Transform any portal links to use relative paths

Prevents unwanted/unnecessary switches to the home page when opening the
portal. Especially useful for copy/pasted links from Admin screens.