Skip to content

Commit 4a4becc

Browse files
committed
fix: Dokumentations-Link für GitHub Pages angepasst
1 parent e8e2259 commit 4a4becc

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/App.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1558,7 +1558,11 @@ const AppContent: React.FC = () => {
15581558

15591559
// Handler für das Öffnen der Dokumentation in einem neuen Tab
15601560
const handleOpenDocumentation = () => {
1561-
window.open('/documentation.html', '_blank');
1561+
// Verwende relative URL für GitHub Pages Kompatibilität
1562+
const baseUrl = window.location.pathname.includes('/flow-ui-toolkit')
1563+
? '/flow-ui-toolkit'
1564+
: '';
1565+
window.open(`${baseUrl}/documentation.html`, '_blank');
15621566
};
15631567

15641568

0 commit comments

Comments
 (0)