Files
ComfyAssets-ComfyUI_PromptM…/web/admin-redirect.html
T
Vito Sansevero 4cefa154f3 feat: old admin, gallery and metadata URLs lead into the workspace (#668)
/prompt_manager/gallery answers 302 to workspace#/images and
/prompt_manager/gallery.html to workspace#/inspect. The Location is relative,
so a reverse-proxy prefix is kept.

/prompt_manager/admin serves a small page that maps the old hash in the
browser (the server never sees it): the dashboard opens the Prompt library,
#/tags opens Tags & categories, and a tag bookmark such as
#/tags/a,b?mode=or opens the Library filtered by those tags
(workspace#/library?tag=a&tag=b&tag_mode=any). The mapping is
web/js/legacy-links.js.

The browser specs that drove the old pages go; the specs that only checked
the old URLs now follow the redirects. The page files themselves are removed
in the next commit.
2026-11-21 10:17:24 -08:00

31 lines
1.4 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" sizes="32x32" href="lib/brand/icon-32.png">
<link rel="apple-touch-icon" sizes="128x128" href="lib/brand/icon-128.png">
<meta name="color-scheme" content="light dark">
<title>Prompt Manager · Opening the workspace</title>
<style>
body { margin: 0; padding: 24px; font: 14px/1.5 system-ui, sans-serif; background: #1b1b1f; color: #eee; }
a { color: inherit; }
</style>
</head>
<body>
<!-- #668 (D207): the old dashboard and Tags page moved to the workspace. The link stays visible, so a browser
without scripts, or one where the script below fails, still has the way on. -->
<p>This page moved to the workspace. <a href="workspace#/library">Open the Prompt library</a></p>
<script src="js/legacy-links.js"></script>
<script>
// The server never sees the hash, so an old tag bookmark (admin#/tags/a,b?mode=or) is mapped here.
// Replace, so Back does not return here and bounce.
(function () {
var target = "workspace#/library";
try { target = window.LegacyLinks.adminTarget(window.location.hash); } catch (error) { /* the Library */ }
window.location.replace(target);
})();
</script>
</body>
</html>