mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-12 04:15:30 +00:00
Fixed homepage links not resolving when DOMAIN_SUB_PATH is set. Fixes #96
This commit is contained in:
parent
c061136125
commit
55b50f22fd
2 changed files with 6 additions and 4 deletions
|
|
@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- Fixed issue where incorrect repository icons were shown occasionally in the filter panel. ([#95](https://github.com/sourcebot-dev/sourcebot/issues/95))
|
- Fixed issue where incorrect repository icons were shown occasionally in the filter panel. ([#95](https://github.com/sourcebot-dev/sourcebot/issues/95))
|
||||||
|
- Fixed homepage links not resolving correctly when DOMAIN_SUB_PATH is set. ([#96](https://github.com/sourcebot-dev/sourcebot/issues/96))
|
||||||
|
|
||||||
## [2.5.1] - 2024-11-26
|
## [2.5.1] - 2024-11-26
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ import { SearchBar } from "./components/searchBar";
|
||||||
import { Separator } from "@/components/ui/separator";
|
import { Separator } from "@/components/ui/separator";
|
||||||
import { SymbolIcon } from "@radix-ui/react-icons";
|
import { SymbolIcon } from "@radix-ui/react-icons";
|
||||||
import { UpgradeToast } from "./components/upgradeToast";
|
import { UpgradeToast } from "./components/upgradeToast";
|
||||||
|
import Link from "next/link";
|
||||||
|
|
||||||
|
|
||||||
export default async function Home() {
|
export default async function Home() {
|
||||||
|
|
@ -123,12 +124,12 @@ const RepositoryList = async () => {
|
||||||
<div className="flex flex-col items-center gap-3">
|
<div className="flex flex-col items-center gap-3">
|
||||||
<span className="text-sm">
|
<span className="text-sm">
|
||||||
{`Search ${repos.length} `}
|
{`Search ${repos.length} `}
|
||||||
<a
|
<Link
|
||||||
href="/repos"
|
href="/repos"
|
||||||
className="text-blue-500"
|
className="text-blue-500"
|
||||||
>
|
>
|
||||||
{repos.length > 1 ? 'repositories' : 'repository'}
|
{repos.length > 1 ? 'repositories' : 'repository'}
|
||||||
</a>
|
</Link>
|
||||||
</span>
|
</span>
|
||||||
<RepositoryCarousel repos={repos} />
|
<RepositoryCarousel repos={repos} />
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -171,11 +172,11 @@ const QueryExplanation = ({ children }: { children: React.ReactNode }) => {
|
||||||
|
|
||||||
const Query = ({ query, children }: { query: string, children: React.ReactNode }) => {
|
const Query = ({ query, children }: { query: string, children: React.ReactNode }) => {
|
||||||
return (
|
return (
|
||||||
<a
|
<Link
|
||||||
href={`/search?query=${query}`}
|
href={`/search?query=${query}`}
|
||||||
className="cursor-pointer hover:underline"
|
className="cursor-pointer hover:underline"
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
</a>
|
</Link>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue