We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e908b96 + 0a91306 commit e132519Copy full SHA for e132519
main/inc/lib/api.lib.php
@@ -4034,6 +4034,9 @@ function api_not_allowed(
4034
if ((!isset($user_id) || api_is_anonymous()) && CustomPages::enabled()) {
4035
$customLoginTemplate = Template::findTemplateFilePath('custompage/login.tpl');
4036
if (file_exists(api_get_path(SYS_TEMPLATE_PATH) . $customLoginTemplate)) {
4037
+ if (empty($_SESSION['request_uri'])) {
4038
+ $_SESSION['request_uri'] = $_SERVER['REQUEST_URI'];
4039
+ }
4040
$tpl = new Template(null, false, false);
4041
$content = $tpl->fetch($customLoginTemplate);
4042
$tpl->assign('content', $content);
0 commit comments