fix: put browse prefix direct in the iframe

This commit is contained in:
Derrick Hammer 2023-10-16 19:39:24 -04:00
parent e7c40cdf32
commit f558399da4
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ export function Navigator() {
const url = new URL(input);
setUrl(
`/browse/${url.hostname}${url.pathname}${url.search}${url.hash}` ||
`${url.hostname}${url.pathname}${url.search}${url.hash}` ||
"about:blank",
);
} catch (e) {
@ -190,5 +190,5 @@ export function Browser() {
boot(status, auth);
}, []);
return <iframe src={url} className="w-full h-full"></iframe>;
return <iframe src={`/browse/${url}`} className="w-full h-full"></iframe>;
}