From 7997cda678b4b7d14149295d5c9790470739d035 Mon Sep 17 00:00:00 2001 From: Ginger Date: Mon, 31 Aug 2026 13:14:27 -0400 Subject: [PATCH] fix: Don't show a broken back link when removing a device --- changelog.d/2062.bugfix.md | 1 + src/web/pages/templates/remove_device.html.j2 | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 changelog.d/2062.bugfix.md diff --git a/changelog.d/2062.bugfix.md b/changelog.d/2062.bugfix.md new file mode 100644 index 000000000..c8fc4b063 --- /dev/null +++ b/changelog.d/2062.bugfix.md @@ -0,0 +1 @@ +Removing a device from the web UI will no longer show a "Back" link pointing to a 404. Contributed by @ginger. diff --git a/src/web/pages/templates/remove_device.html.j2 b/src/web/pages/templates/remove_device.html.j2 index d82006d3f..265ef05cb 100644 --- a/src/web/pages/templates/remove_device.html.j2 +++ b/src/web/pages/templates/remove_device.html.j2 @@ -6,9 +6,9 @@ Remove a device {%- block content -%}
-

Remove a device Back

{% match body %} {% when RemoveDeviceBody::Form { device_card, last_device } %} +

Remove a device Back

{{ device_card }}

Do you want to remove this device from your account? It will be signed out immediately. @@ -29,8 +29,10 @@ Remove a device {% when RemoveDeviceBody::Success %} +

Remove a device

- The device has been signed out successfully. + The device has been removed successfully. + Back to account settings

{% endmatch %}