Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

fixes

Steven Tey0f1c62d271b2
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/domains/header.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/domains/header.tsx
index 85c19dbc95..e76f5fc7ed 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/domains/header.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/domains/header.tsx
@@ -7,7 +7,8 @@ import { useSelectedLayoutSegment } from "next/navigation";
export function DomainsHeader({
baseUrl = "/settings/domains",
}: {
- baseUrl?: string;
+ /** Must start with “/”. */
+ baseUrl?: `/${string}`;
}) {
const { slug } = useWorkspace();
const selectedLayoutSegment = useSelectedLayoutSegment();
diff --git a/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx b/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx
index e2aff99467..fe1626045a 100644
--- a/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx
+++ b/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx
@@ -104,7 +104,6 @@ const NAV_AREAS: SidebarNavAreas<SidebarNavData> = {
name: "Links",
icon: Hyperlink,
href: `/${slug}/links${pathname === `/${slug}/links` ? "" : queryString}`,
- exact: true,
},
{
name: "Domains",
diff --git a/apps/web/ui/layout/sidebar/sidebar-nav.tsx b/apps/web/ui/layout/sidebar/sidebar-nav.tsx
index f15bebffce..25e1a59af0 100644
--- a/apps/web/ui/layout/sidebar/sidebar-nav.tsx
+++ b/apps/web/ui/layout/sidebar/sidebar-nav.tsx
@@ -23,7 +23,7 @@ import UserDropdown from "./user-dropdown";
export type NavItemCommon = {
name: string;
- href: string;
+ href: `/${string}`;
exact?: boolean;
};