mirror of
https://github.com/HelloZeroNet/ZeroNet.git
synced 2023-12-14 04:33:03 +01:00
Use redirect after cloning the site
This commit is contained in:
parent
316cd7710f
commit
3dfb40b57e
1 changed files with 2 additions and 1 deletions
|
@ -936,7 +936,8 @@ class UiWebsocket(object):
|
|||
new_site = site.clone(new_address, new_site_data["privatekey"], address_index=new_address_index, root_inner_path=root_inner_path)
|
||||
new_site.settings["own"] = True
|
||||
new_site.saveSettings()
|
||||
self.cmd("notification", ["done", _["Site cloned"] + "<script>window.top.location = '/%s'</script>" % new_address])
|
||||
self.cmd("notification", ["done", _["Site cloned"]])
|
||||
self.cmd("redirect", "/%s" % new_address)
|
||||
gevent.spawn(new_site.announce)
|
||||
return "ok"
|
||||
|
||||
|
|
Loading…
Reference in a new issue