feat: redirects screen

- golem15.seo.redirects list and form (UI-SPEC C8): chain rows marked,
  status, match, origin and chain filters, the navigation item lands here
- a field-less extension on the controller refuses a loop with
  redirects.loop on target, answers the chain notice and records history
- the status dropdown posts text, read through RedirectStatus
This commit is contained in:
2026-10-27 11:30:56 +01:00
parent 34a65b846e
commit 163b0aaf98
15 changed files with 677 additions and 24 deletions

View File

@@ -2,6 +2,7 @@ plugin:
name: SEO
description: Search engine metadata for every content type, URL rules and global SEO settings.
nav:
redirects: Redirects
seo: SEO
history: History
rules: URL rules
@@ -199,3 +200,40 @@ redirects:
regex_invalid: "This is not a valid regular expression: :error"
source_invalid: "Start the address with /. Use * only in a pattern."
source_taken: "Another redirect already uses this address and match."
new: "New redirect"
list_title: "Redirects"
name: "Redirect"
source: "From"
source_comment: "Exact: /old-post. Pattern: /old/* (the matched part replaces * in the target). Regex: ^/p/(\\d+)$ (use $1 in the target)."
match: "Match"
match_exact: "Exact"
match_pattern: "Pattern"
match_regex: "Regex"
target: "To"
target_comment: "A path or a full URL. Leave empty for 410 Gone."
status: "Status"
status_301: "301 Moved permanently"
status_302: "302 Found (temporary)"
status_410: "410 Gone"
query: "Query string"
query_ignore: "Ignore it"
query_pass: "Pass it to the target"
ignore_case: "Ignore letter case"
trailing_slash: "Match with and without a trailing slash"
note: "Note"
origin: "Origin"
origin_manual: "Manual"
origin_slug: "Address change"
origin_import: "Import"
origin_mcp: "MCP"
origin_notfound: "404 log"
updated: "Updated"
state_chain: "Chain"
filter_chain: "Chains"
filter_chain_only: "Only chains"
filter_chain_hide: "Hide chains"
list_empty: "No redirects yet. Create one, import a CSV file, or create one from the 404 log."
delete_confirm: "Delete this redirect? Its source address will return 404 again. You can undo it in History."
delete_selected_confirm:
one: "Delete :count redirect? Its source address will return 404 again. You can undo it in History."
other: "Delete :count redirects? Their source addresses will return 404 again. You can undo it in History."