diff --git a/src/common/AsideMenu.js b/src/common/AsideMenu.js index 1b223dbb..08808d2a 100644 --- a/src/common/AsideMenu.js +++ b/src/common/AsideMenu.js @@ -4,6 +4,11 @@ import './AsideMenu.scss'; export default function AsideMenu({ selectedServer }) { const serverId = selectedServer ? selectedServer.id : ''; + const isListShortUrlsActive = (match, { pathname }) => { + // FIXME. Should use the 'match' params, but they are not being properly resolved. Investigate + const serverIdFromPathname = pathname.split('/')[2]; + return serverIdFromPathname === serverId && pathname.indexOf('list-short-urls') !== -1; + }; return (