Skip to content

Commit b8e2d36

Browse files
Remove trailing slash in hindi path link
1 parent 2fe7cce commit b8e2d36

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/javascript/components/header.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ hindi_link.addEventListener('click', ()=>{
6161
if (pathArr.indexOf('Hindi') == -1) {
6262
pathArr.splice(1, 0, 'Hindi')
6363
let path = pathArr.join("/")
64+
if(path.charAt(path.length-1)=="/")
65+
path = path.substring(0,path.length-1)
6466
url.pathname = path
6567
window.location = url
6668
}

0 commit comments

Comments
 (0)