Aug 19 - Fix New Inspection Internal Server error
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}Inspection #{{ inspection.id }} — Results{% endblock %}
|
||||
|
||||
{# The filtered list URL this page was opened from. Defined at TOP LEVEL, not
|
||||
inside the content block: Jinja blocks do not share scope, and the follow-up
|
||||
modal below sits in the extra_js block — from there a content-scoped
|
||||
back_url is Undefined and posts next="", silently dropping the very filters
|
||||
this mechanism exists to preserve. #}
|
||||
{% set back_url = request.args.get('next') or url_for('inspections.index') %}
|
||||
|
||||
{% block extra_css %}
|
||||
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
@@ -341,7 +348,6 @@
|
||||
{# `next` carries the filtered list URL from the list page; the
|
||||
sessionStorage fallback below still covers links opened before
|
||||
this page started sending one. #}
|
||||
{% set back_url = request.args.get('next') or url_for('inspections.index') %}
|
||||
<a id="backToInspectionsBtn" href="{{ back_url }}" class="btn btn-sm btn-outline-secondary">
|
||||
<i class="bi bi-arrow-left"></i> Back to Inspections
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user