Remove the MOVED redirects
MOVED and _moved answered 301 for twelve paths the settings cog moved off of a few days ago. A browser caches a 301 indefinitely, so a path reused later would be unreachable through no fault of that page, and a one-person app has no outstanding bookmark to protect. Drop the table, the routes, its export from app.web, and the tests that pinned it; the old paths now answer plain 404. Keep the test that every section of the Sources page exists, rewritten without MOVED. Co-Authored-By: Claude Sonnet <noreply@anthropic.com>
This commit is contained in:
1 parent
706b127bc0
commit
92ff2bc069
5 files changed
+24
-78
No files matched your search
+2
-2
@@ -7,8 +7,8 @@ from __future__ import annotations
|
||||
|
||||
from app.web.api import router as api_router
|
||||
from app.web.pages import (
|
||||
MOVED, SETTINGS, STATIC_DIR, TABS, router as pages_router, templates,
|
||||
SETTINGS, STATIC_DIR, TABS, router as pages_router, templates,
|
||||
)
|
||||
|
||||
__all__ = ["MOVED", "SETTINGS", "STATIC_DIR", "TABS", "api_router", "pages_router",
|
||||
__all__ = ["SETTINGS", "STATIC_DIR", "TABS", "api_router", "pages_router",
|
||||
"templates"]
|
||||
Reference in new issue
Block a user