feat: X-Redirect pages

This commit is contained in:
2026-04-20 11:36:56 +02:00
parent 5fb10ffb9d
commit 5671d68e21
11 changed files with 334 additions and 73 deletions
+4 -1
View File
@@ -7,11 +7,14 @@ class Page:
with_index: bool = False
host: str | None = None
token_hash: str | None = None
redirect: str | None = None
def __repr__(self) -> str:
out = f"/{self.path}/"
if self.host is not None:
out += f" [{self.host}]"
if not self.with_index:
if self.redirect is not None:
out += f" (redirect: {self.redirect})"
elif not self.with_index:
out += " (no index)"
return out