diff --git a/src/components/FileSelector/TargetURLSelector.jsx b/src/components/FileSelector/TargetURLSelector.jsx index f0047fb..8ae6817 100644 --- a/src/components/FileSelector/TargetURLSelector.jsx +++ b/src/components/FileSelector/TargetURLSelector.jsx @@ -4,7 +4,7 @@ export default function TargetURLSelector ({ theme, setLocation, buildLink }) { const onKeyPress = ({ keyCode, target }) => { if (keyCode !== 13) return - const url = target.value + const url = encodeURI(target.value) if (urlRE.test(url)) { setLocation(buildLink({ url, theme }))