Rev1781, Only force / to end of site address
This commit is contained in:
parent
c4ae8ef711
commit
a17ab1ce25
3 changed files with 3 additions and 3 deletions
|
@ -9,7 +9,7 @@ class Config(object):
|
||||||
|
|
||||||
def __init__(self, argv):
|
def __init__(self, argv):
|
||||||
self.version = "0.5.1"
|
self.version = "0.5.1"
|
||||||
self.rev = 1780
|
self.rev = 1781
|
||||||
self.argv = argv
|
self.argv = argv
|
||||||
self.action = None
|
self.action = None
|
||||||
self.config_file = "zeronet.conf"
|
self.config_file = "zeronet.conf"
|
||||||
|
|
|
@ -141,7 +141,7 @@ class Wrapper
|
||||||
if query == null
|
if query == null
|
||||||
query = window.location.search
|
query = window.location.search
|
||||||
back = window.location.pathname
|
back = window.location.pathname
|
||||||
if back.slice(-1) != "/"
|
if back.match /^\/[^\/]*$/ # Add / after site address if called without it
|
||||||
back += "/"
|
back += "/"
|
||||||
if query.replace("?", "")
|
if query.replace("?", "")
|
||||||
back += "?"+query.replace("?", "")
|
back += "?"+query.replace("?", "")
|
||||||
|
|
|
@ -959,7 +959,7 @@ jQuery.extend( jQuery.easing,
|
||||||
query = window.location.search;
|
query = window.location.search;
|
||||||
}
|
}
|
||||||
back = window.location.pathname;
|
back = window.location.pathname;
|
||||||
if (back.slice(-1) !== "/") {
|
if (back.match(/^\/[^\/]*$/)) {
|
||||||
back += "/";
|
back += "/";
|
||||||
}
|
}
|
||||||
if (query.replace("?", "")) {
|
if (query.replace("?", "")) {
|
||||||
|
|
Loading…
Reference in a new issue