Skip to content

Commit 7b4f062

Browse files
authored
fix magic url base to not redirect keyless links to expired page (#2909)
restore public_key guard removed in befbd76 so redirect-only magic links (e.g. newest/map) are not killed before child constructors run
1 parent 4eeffe3 commit 7b4f062

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dt-reports/magic-url-base.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function __construct() {
4848
}
4949

5050
$this->magic->determine_post_id( $this->parts );
51-
if ( empty( $this->parts['post_id'] ) ){
51+
if ( !empty( $this->parts['public_key'] ) && empty( $this->parts['post_id'] ) ){
5252
$this->magic->redirect_to_expired_landing_page();
5353
}
5454

0 commit comments

Comments
 (0)