mirror of
https://github.com/FAUSheppy/open-web-leaderboard.git
synced 2025-12-09 08:28:32 +01:00
fix url ussage in firstPage
This commit is contained in:
@@ -49,10 +49,6 @@ function firstPage(){
|
|||||||
var href = window.location.href
|
var href = window.location.href
|
||||||
var parameterSeperator = "?"
|
var parameterSeperator = "?"
|
||||||
|
|
||||||
/* clean URL from unessesary parameters */
|
|
||||||
url.searchParams.delete("goto")
|
|
||||||
url.searchParams.delete("start")
|
|
||||||
|
|
||||||
if(href.includes(parameterSeperator)){
|
if(href.includes(parameterSeperator)){
|
||||||
window.location.href = href.split(parameterSeperator)[0]
|
window.location.href = href.split(parameterSeperator)[0]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user