docs: fix redirect url

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi 2021-05-21 13:37:09 -07:00
parent 27cf21508a
commit 1945fef035

View File

@ -19,7 +19,7 @@ const Select = () => {
}, []) }, [])
return ( return (
<SelectStyled value={currentLocation[currentLocation.length - 1]} onChange={(e) => isBrowser ? window.location.pathname = `/${e.currentTarget.value}/index.html` : null}> <SelectStyled value={currentLocation[currentLocation.length - 1]} onChange={(e) => isBrowser ? window.location.pathname = `/${e.currentTarget.value}` : null}>
{tagsList.map(t => ( {tagsList.map(t => (
<option>{t.tag}</option> <option>{t.tag}</option>
))} ))}