1
0

Add trailing slashes to paths.

This commit is contained in:
PA4KEV 2024-04-20 20:17:35 +02:00
parent 6991f8cca9
commit 10e9ea354b

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 = () => {
@ -34,11 +34,11 @@ const Navigation = () => {
{getString('portal')}
</a>
<ul className="dropdown-menu">
<li><Link reloadDocument to={currentLanguage + '/japan'} className="dropdown-item">{getString('japanese')}</Link></li>
<li><Link reloadDocument to={currentLanguage + '/japan/'} className="dropdown-item">{getString('japanese')}</Link></li>
<li><hr className="dropdown-divider" /></li>
<li><Link reloadDocument to={currentLanguage + '/radio'} className="dropdown-item">{getString('radio_amateur')}</Link></li>
<li><Link reloadDocument to={currentLanguage + '/radio/'} className="dropdown-item">{getString('radio_amateur')}</Link></li>
<li><hr className="dropdown-divider" /></li>
<li><Link reloadDocument to={currentLanguage + '/software'} className="dropdown-item">{getString('software')}</Link></li>
<li><Link reloadDocument to={currentLanguage + '/software/'} className="dropdown-item">{getString('software')}</Link></li>
</ul>
</li>