From b3a28b7a4b0c87ac3b45f17af56674ffe3b3d4a0 Mon Sep 17 00:00:00 2001 From: corsacca Date: Fri, 10 Apr 2026 16:32:16 +0100 Subject: [PATCH] fix magic url base to not redirect keyless links to expired page restore public_key guard removed in befbd76ba so redirect-only magic links (e.g. newest/map) are not killed before child constructors run --- dt-reports/magic-url-base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dt-reports/magic-url-base.php b/dt-reports/magic-url-base.php index bdd6abca14..1736595a16 100644 --- a/dt-reports/magic-url-base.php +++ b/dt-reports/magic-url-base.php @@ -48,7 +48,7 @@ public function __construct() { } $this->magic->determine_post_id( $this->parts ); - if ( empty( $this->parts['post_id'] ) ){ + if ( !empty( $this->parts['public_key'] ) && empty( $this->parts['post_id'] ) ){ $this->magic->redirect_to_expired_landing_page(); }