Add trailing slashes to paths.
This commit is contained in:
parent
6991f8cca9
commit
10e9ea354b
@ -8,7 +8,7 @@ import './Navigation.css';
|
|||||||
|
|
||||||
function generatePath(language) {
|
function generatePath(language) {
|
||||||
const currentPath = window.location.pathname;
|
const currentPath = window.location.pathname;
|
||||||
return `/${language}${currentPath.substring(currentPath.indexOf('/', 1))}`;
|
return `/${language}${currentPath.substring(currentPath.indexOf('/', 1))}/`;
|
||||||
}
|
}
|
||||||
|
|
||||||
const Navigation = () => {
|
const Navigation = () => {
|
||||||
@ -34,11 +34,11 @@ const Navigation = () => {
|
|||||||
{getString('portal')}
|
{getString('portal')}
|
||||||
</a>
|
</a>
|
||||||
<ul className="dropdown-menu">
|
<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><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><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>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user