mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-11 20:05:25 +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 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
|
||||
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ import { SearchBar } from "./components/searchBar";
|
|||
import { Separator } from "@/components/ui/separator";
|
||||
import { SymbolIcon } from "@radix-ui/react-icons";
|
||||
import { UpgradeToast } from "./components/upgradeToast";
|
||||
import Link from "next/link";
|
||||
|
||||
|
||||
export default async function Home() {
|
||||
|
|
@ -123,12 +124,12 @@ const RepositoryList = async () => {
|
|||
<div className="flex flex-col items-center gap-3">
|
||||
<span className="text-sm">
|
||||
{`Search ${repos.length} `}
|
||||
<a
|
||||
<Link
|
||||
href="/repos"
|
||||
className="text-blue-500"
|
||||
>
|
||||
{repos.length > 1 ? 'repositories' : 'repository'}
|
||||
</a>
|
||||
</Link>
|
||||
</span>
|
||||
<RepositoryCarousel repos={repos} />
|
||||
</div>
|
||||
|
|
@ -171,11 +172,11 @@ const QueryExplanation = ({ children }: { children: React.ReactNode }) => {
|
|||
|
||||
const Query = ({ query, children }: { query: string, children: React.ReactNode }) => {
|
||||
return (
|
||||
<a
|
||||
<Link
|
||||
href={`/search?query=${query}`}
|
||||
className="cursor-pointer hover:underline"
|
||||
>
|
||||
{children}
|
||||
</a>
|
||||
</Link>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue