Commit 3e72a42d authored by Thanasis Katsadas's avatar Thanasis Katsadas

Fix: remove trailing slash in url

parent 7b70e77d
......@@ -8,6 +8,13 @@ module.exports = {
organizationName: 'grnet',
projectName: 'essif-lab',
onBrokenLinks: 'log',
scripts: [
{
src: '/framework/js/fix-location.js',
async: false,
defer: false,
},
],
themeConfig: {
navbar: {
// title: 'ESSIF-Lab',
......
if (window && window.location && window.location.pathname.endsWith('/') && window.location.pathname !== '/') {
window.history.replaceState('', '', window.location.pathname.substr(0, window.location.pathname.length - 1))
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment