diff --git a/ui/page/search/index.js b/ui/page/search/index.js index a896cbc72..d808e7a7f 100644 --- a/ui/page/search/index.js +++ b/ui/page/search/index.js @@ -16,7 +16,11 @@ import SearchPage from './view'; const select = (state, props) => { const showMature = makeSelectClientSetting(SETTINGS.SHOW_MATURE)(state); const urlParams = new URLSearchParams(props.location.search); - const urlQuery = urlParams.get('q') || null; + let urlQuery = urlParams.get('q') || null; + if (urlQuery) { + urlQuery = urlQuery.replace(/^lbry:\/\//i, '').replace(/\//, ' '); + } + const query = makeSelectQueryWithOptions( urlQuery, showMature === false ? { nsfw: false, isBackgroundSearch: false } : { isBackgroundSearch: false }