Sign in
apache
/
incubator-heron
/
f940c1f7363c07cbb7703f13d00b33aba6dcdec8
/
.
/
content
/
js
/
fix-location.js
blob: 3afb4300fcff6d83729e0e45c6f4d430b4910a57 [
file
] [
log
] [
blame
]
if
(
window
&&
window
.
location
&&
window
.
location
.
pathname
.
endsWith
(
'/'
)
&&
window
.
location
.
pathname
!==
'/'
)
{
window
.
history
.
replaceState
(
''
,
''
,
window
.
location
.
pathname
.
substr
(
0
,
window
.
location
.
pathname
.
length
-
1
))
}