Skip to content
Snippets Groups Projects
Commit 06c5f6a4 authored by Jürgen Voskuhl's avatar Jürgen Voskuhl
Browse files

Still testing basePath...

parent 11c87910
No related branches found
No related tags found
1 merge request!86planning#1203: Standards
Pipeline #57664 waiting for manual action
......@@ -28,6 +28,8 @@ export default () => {
const currentPath = router.asPath // Aktuellen Pfad holen
const pathSegments = currentPath.split('/') // Pfad in Segmente aufteilen
const rootFolder = router.basePath === '' ? '/fit-standards/' : router.basePath
const rootA = rootFolder
const rootLink = '/fit-standards/'
/* folgenden Teil des Codes habe ich von ChatGPT schreiben lassen: */
return (
......@@ -36,7 +38,7 @@ export default () => {
<div className="flex items-center space-x-4">
{/* Platzhalter für das Logo */}
<Link href={`${rootFolder}`} passHref legacyBehavior>
<Link href={`${rootLink}`} passHref legacyBehavior>
<a>
<div className="h-10 w-48 bg-gray-300 mr-8 leading-9 text-center hover:text-white">
Logo
......@@ -73,7 +75,7 @@ export default () => {
</a>
*/}
<a href={`${rootFolder}hilfe`} className="hover:text-white">Bedienungshilfe</a>
<a href={`${rootA}hilfe`} className="hover:text-white">Bedienungshilfe</a>
<a href="mailto:it-standards@fitko.de" className="hover:text-white">Kontakt</a>
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment