From 93e0d073a020a1c3801580c0ecf6c5f641a020ab Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sat, 27 Aug 2022 09:24:21 +0200 Subject: [PATCH] Tweak lookup --- app/admin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/admin.py b/app/admin.py index cc69d4c..d2e2acd 100644 --- a/app/admin.py +++ b/app/admin.py @@ -122,7 +122,9 @@ async def get_lookup( ) if requested_object: return RedirectResponse( - request.url_for("admin_object") + f"?ap_id={ap_object.ap_id}", + request.url_for("admin_object") + + f"?ap_id={ap_object.ap_id}#" + + requested_object.permalink_id, status_code=302, )