1
0

Fix bug with additional slash appended when switching languages.

This commit is contained in:
Kevin Matsubara 2025-01-22 22:33:33 +01:00
parent baf3aff44b
commit 447561179b

View File

@ -8,7 +8,7 @@ import './Navigation.css';
function generatePath(language) {
const currentPath = window.location.pathname;
return `/${language}${currentPath.substring(currentPath.indexOf('/', 1))}/`;
return `/${language}${currentPath.substring(currentPath.indexOf('/', 1))}`;
}
const Navigation = () => {