From ca0f43ce55b7863318587e6728506fcc613af4ef Mon Sep 17 00:00:00 2001 From: Genyus Date: Mon, 16 Nov 2026 14:01:03 -0400 Subject: [PATCH] fix(academy): let staff preview unpublished course steps LearnDash redirects non-admins viewing a lesson, topic or quiz outside its course URL to the step's nested permalink. An unpublished step has no slug, so that permalink is the preview URL itself, and Reviewers hit a redirect loop. Skip the check for previews by users who can edit the step. --- .../cbf-learndash-step-previews.php | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 web/app/mu-plugins/cbf-learndash-step-previews.php diff --git a/web/app/mu-plugins/cbf-learndash-step-previews.php b/web/app/mu-plugins/cbf-learndash-step-previews.php new file mode 100644 index 00000000..74182b6d --- /dev/null +++ b/web/app/mu-plugins/cbf-learndash-step-previews.php @@ -0,0 +1,36 @@ +