Add redirect support, live candidate list, per-article save count, and error pages

- Detect redirect targets (e.g. "handling stolen goods" → "Possession of
  stolen goods") and use piped links [[target|title]] in edits; exclude
  articles already linking to the redirect target from candidates
- Remove candidates from the list in real time as they are checked and
  found invalid, with live count update in the summary
- Track and display per-article save count in the stats line
- Rename "Find Link" to "Missing Link" throughout
- Show redirect target in the article heading
- Report save errors to the user via error page instead of crashing
- Filter self-links using case-insensitive first-letter comparison

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Edward Betts 2026-05-11 13:53:35 +01:00
parent 0239b83555
commit c9b4e2face
3 changed files with 64 additions and 17 deletions

View file

@ -5,14 +5,14 @@
<link href="{{ url_for("static", filename="bootstrap5/css/bootstrap.min.css") }}" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/svg+xml" href="{{ url_for('static', filename='favicon.svg') }}">
<title>{% block title %}{% endblock %} Find Link</title>
<title>{% block title %}{% endblock %} Missing Link</title>
{% block style %}{% endblock %}
</head>
<body>
<nav class="navbar navbar-expand-md navbar-dark bg-dark mb-4">
<div class="container">
<a class="navbar-brand fw-semibold" href="{{ url_for('index') }}">Find Link</a>
<a class="navbar-brand fw-semibold" href="{{ url_for('index') }}">Missing Link</a>
<div class="d-flex align-items-center gap-2">
<form class="d-flex" action="{{ url_for('index') }}">
<input class="form-control form-control-sm me-2" name="q" placeholder="Article title…" style="width:240px">