We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a798f0 commit 155e622Copy full SHA for 155e622
site/src/app/redirect/page.tsx
@@ -3,15 +3,20 @@
3
import { useSearchParams } from 'next/navigation'
4
import { Suspense } from 'react'
5
6
-export default function Page() {
+function Search() {
7
const searchParams = useSearchParams()
8
const game = searchParams.get('game')
9
const urlPrefix = "0; URL=com.epicgames.launcher://store"
10
var content = game == null ? urlPrefix : urlPrefix + "/p/" + game
11
- return <Suspense>
12
- <head className='redirect'>
+
+ return <head className='redirect'>
13
<meta http-equiv="refresh" content={content}/>
14
redirecting to desktop app ...
15
</head>
16
+}
17
18
+export default function Page() {
19
+ return <Suspense>
20
+ <Search/>
21
</Suspense>
22
}
0 commit comments