We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 482d29b commit bb484fbCopy full SHA for bb484fb
1 file changed
src/routes/[...404]/index.tsx
@@ -1,11 +1,8 @@
1
import { component$ } from '@builder.io/qwik';
2
import { DocumentHead, Link, routeLoader$ } from '@builder.io/qwik-city';
3
4
-const decode = (str: string):string => Buffer.from(str, 'base64').toString('binary');
5
-
6
export const useResults = routeLoader$(async ({ params, redirect }) => {
7
- const url = decode(params['404']);
8
- console.log(params['404']);
+ const url = atob(params['404']);
9
if (url.startsWith('http')) throw redirect(302, url);
10
});
11
0 commit comments