diff --git a/app/soapbox/components/sidebar_menu.js b/app/soapbox/components/sidebar_menu.js
index 2af73926e..8ae15f956 100644
--- a/app/soapbox/components/sidebar_menu.js
+++ b/app/soapbox/components/sidebar_menu.js
@@ -12,7 +12,7 @@ import IconButton from './icon_button';
import Icon from './icon';
import DisplayName from './display_name';
import { closeSidebar } from '../actions/sidebar';
-import { isAdmin } from '../utils/accounts';
+import { isAdmin, getBaseURL } from '../utils/accounts';
import { makeGetAccount, makeGetOtherAccounts } from '../selectors';
import { logOut, switchAccount } from 'soapbox/actions/auth';
import ThemeToggle from '../features/ui/components/theme_toggle_container';
@@ -54,6 +54,7 @@ const makeMapStateToProps = () => {
const mapStateToProps = state => {
const me = state.get('me');
+ const account = state.getIn(['accounts', me]);
const instance = state.get('instance');
const features = getFeatures(instance);
@@ -67,6 +68,7 @@ const makeMapStateToProps = () => {
otherAccounts: getOtherAccounts(state),
features,
siteTitle: instance.get('title'),
+ baseURL: getBaseURL(account),
};
};
@@ -100,6 +102,7 @@ class SidebarMenu extends ImmutablePureComponent {
sidebarOpen: PropTypes.bool,
onClose: PropTypes.func.isRequired,
features: PropTypes.object.isRequired,
+ baseURL: PropTypes.string,
};
state = {
@@ -156,7 +159,7 @@ class SidebarMenu extends ImmutablePureComponent {
}
render() {
- const { sidebarOpen, intl, account, onClickLogOut, donateUrl, otherAccounts, hasCrypto, features, siteTitle } = this.props;
+ const { sidebarOpen, intl, account, onClickLogOut, donateUrl, otherAccounts, hasCrypto, features, siteTitle, baseURL } = this.props;
const { switcher } = this.state;
if (!account) return null;
const acct = account.get('acct');
@@ -270,10 +273,17 @@ class SidebarMenu extends ImmutablePureComponent {