Style improvements and user history bugs #1999

Merged
neb-b merged 4 commits from history-improvements into master 2018-10-05 19:47:52 +02:00
Showing only changes of commit 0ad7a74905 - Show all commits

View file

@ -8,6 +8,14 @@ export function doNavigate(path, params = {}, options = {}) {
return; return;
} }
// ensure uri always has "lbry://" prefix
const navigationParams = params;
if (path === '/show') {
if (navigationParams.uri && !navigationParams.uri.startsWith('lbry://')) {
navigationParams.uri = `lbry://${navigationParams.uri}`;
}
}
let url = path; let url = path;
if (params && Object.values(params).length) { if (params && Object.values(params).length) {
url += `?${toQueryString(params)}`; url += `?${toQueryString(params)}`;