MCPcopy
hub / github.com/HelloZeroNet/ZeroNet / actionRedirect

Method actionRedirect

src/Ui/UiRequest.py:317–319  ·  view source on GitHub ↗
(self, url)

Source from the content-addressed store, hash-verified

315
316 # Redirect to an url
317 def actionRedirect(self, url):
318 self.start_response('301 Redirect', [('Location', str(url))])
319 yield b"Location changed: " + url.encode("utf8")
320
321 def actionIndex(self):
322 return self.actionRedirect("/" + config.homepage)

Callers 3

actionIndexMethod · 0.95
actionSiteMediaMethod · 0.95
actionSiteAddMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected