diff --git a/dt-reports/magic-url-base.php b/dt-reports/magic-url-base.php index bdd6abca1..1736595a1 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(); }