Skip to content

Commit

Permalink
update link
Browse files Browse the repository at this point in the history
  • Loading branch information
kounoike committed Apr 30, 2023
1 parent dd29977 commit 834c75a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions frontend/src/app/recorded/mp4/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@ import { useEffect, useState } from "react"
export default function SearchPage() {
const [mp4Path, setMp4Path] = useState<string | undefined>(undefined)
useEffect(() => {
const searchParams = new URLSearchParams(window.location.search)
const f = searchParams.get("f")
if (f !== null) {
setMp4Path(f)
}
setMp4Path(window.location.search)
}, [])

return mp4Path === undefined ? (
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/recorded/search/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ const Hit = ({ hit }: { hit: any }) => (
</Typography>
{hit.mp4 && (
<Link
href={{ pathname: "/recorded/mp4", query: { f: hit.mp4 } }}
href={"/recorded/mp4/?" + encodeURIComponent(hit.mp4)}
target="_blank"
>
<Button variant="text">MP4</Button>
Expand Down

0 comments on commit 834c75a

Please sign in to comment.