fix: ensure trailing slashes

This commit is contained in:
Oleg Proskurin 2026-01-02 21:08:28 +07:00
parent 5d7da9e59c
commit 5d1309633d
4 changed files with 6 additions and 6 deletions

View File

@ -4,8 +4,8 @@ import { usePathname } from 'next/navigation';
import { SubsectionNav } from '@/components/shared/SubsectionNav';
const navItems = [
{ label: 'Master Key', href: '/admin/master' },
{ label: 'API Keys', href: '/admin/apikeys' },
{ label: 'Master Key', href: '/admin/master/' },
{ label: 'API Keys', href: '/admin/apikeys/' },
];
export default function AdminLayout({ children }: { children: React.ReactNode }) {

View File

@ -6,11 +6,11 @@ import { ApiKeyProvider } from '@/components/shared/ApiKeyWidget/apikey-context'
import { PageProvider } from '@/contexts/page-context';
const navItems = [
{ label: 'API', href: '/docs' },
{ label: 'API', href: '/docs/' },
{ label: 'SDK', href: '#', disabled: true },
{ label: 'MCP', href: '#', disabled: true },
{ label: 'CLI', href: '#', disabled: true },
{ label: 'Lab', href: '/demo/tti' },
{ label: 'Lab', href: '/demo/tti/' },
];
export default function DemoLayout({ children }: { children: React.ReactNode }) {

View File

@ -8,7 +8,7 @@ import { ApiKeyProvider } from '@/components/shared/ApiKeyWidget/apikey-context'
import { PageProvider } from '@/contexts/page-context';
const navItems = [
{ label: 'API', href: '/docs' },
{ label: 'API', href: '/docs/' },
{ label: 'SDK', href: '#', disabled: true },
{ label: 'MCP', href: '#', disabled: true },
{ label: 'CLI', href: '#', disabled: true },

View File

@ -30,7 +30,7 @@ export const EmptyGalleryState = () => {
</p>
<Link
href="/demo/tti"
href="/demo/tti/"
className="inline-block px-8 py-4 rounded-xl bg-gradient-to-r from-amber-600 to-orange-600 text-white font-semibold hover:from-amber-500 hover:to-orange-500 transition-all shadow-lg shadow-amber-900/30 focus:outline-none focus:ring-2 focus:ring-amber-500 focus:ring-offset-2 focus:ring-offset-slate-950 min-h-[44px]"
>
Generate Images