From 9f811c1fce03d037e82c13b667d91e7a9d9c8c81 Mon Sep 17 00:00:00 2001 From: Peter Burnett Date: Mon, 22 Jun 2026 16:37:02 +1000 Subject: [PATCH] fix: improve wantsurl handling from loginpage list --- login.php | 3 ++- version.php | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/login.php b/login.php index 1f3971a92..d36c105c5 100644 --- a/login.php +++ b/login.php @@ -33,7 +33,8 @@ // @codingStandardsIgnoreEnd require('setup.php'); -$wantsurl = optional_param('wantsurl', '', PARAM_LOCALURL); // Overrides $SESSION->wantsurl if given. +// Get the wants if set. May be set as either wantsurl or wants from the button on the login page. +$wantsurl = optional_param('wantsurl', '', PARAM_LOCALURL) ?: optional_param('wants', '', PARAM_LOCALURL); if ($wantsurl !== '') { // This is later used in core_login_get_return_url(). $SESSION->wantsurl = (new moodle_url($wantsurl))->out(false); diff --git a/version.php b/version.php index 6a5001731..1cc988b73 100644 --- a/version.php +++ b/version.php @@ -24,8 +24,8 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2025040403; // The current plugin version (Date: YYYYMMDDXX). -$plugin->release = 2025040403; // Match release exactly to version. +$plugin->version = 2025040404; // The current plugin version (Date: YYYYMMDDXX). +$plugin->release = 2025040404; // Match release exactly to version. $plugin->requires = 2024100700; // Requires Moodle 4.5 $plugin->component = 'auth_saml2'; // Full name of the plugin (used for diagnostics). $plugin->maturity = MATURITY_STABLE;