Skip to content

Commit 379a614

Browse files
authored
Merge pull request #2644 from themeum/redirect_dashboard
Fix: Added query params to the redirected link
2 parents 1c39086 + c66bd3d commit 379a614

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

classes/Dashboard.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,13 @@ public function redirect_old_dashboard_pages() {
7979
return;
8080
}
8181

82-
wp_safe_redirect( $redirect_mappings[ $current_url ] );
82+
$redirect_url = $redirect_mappings[ $current_url ];
83+
84+
if ( tutor_utils()->count( $_GET ) ) {
85+
$redirect_url = UrlHelper::add_query_params( $redirect_url, $_GET );
86+
}
87+
88+
wp_safe_redirect( $redirect_url );
8389
exit;
8490
}
8591
}

0 commit comments

Comments
 (0)