mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-18 00:32:06 +00:00
extra added to query params in discover
This commit is contained in:
parent
d12cc21334
commit
1f9700deec
1 changed files with 5 additions and 1 deletions
|
|
@ -16,7 +16,11 @@ const useCatalog = (urlParams, queryParams) => {
|
|||
const state = core.getState();
|
||||
const onSelect = (event) => {
|
||||
const load = JSON.parse(event.value);
|
||||
window.location = `#/discover/${encodeURIComponent(load.base)}/${encodeURIComponent(load.path.id)}/${encodeURIComponent(load.path.type_name)}`;
|
||||
const addonTransportUrl = encodeURIComponent(load.base);
|
||||
const catalogId = encodeURIComponent(load.path.id);
|
||||
const type = encodeURIComponent(load.path.type_name);
|
||||
const extra = new URLSearchParams(load.path.extra).toString();
|
||||
window.location = `#/discover/${addonTransportUrl}/${catalogId}/${type}?${extra}`;
|
||||
};
|
||||
const selectInputs = [
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue