Does anyone know how to return to the "last page" after the user is presented with a login screen and you want to create a new account?
Basically the sequence:
How do we automatically redirect it to the original page (and not to the static page).
. - - , URL-. :
<?php if (user_is_anonymous()) { $link = l(t('Login'), 'user/login', array('query' => drupal_get_destination())); } ?>
admin/settings/error-reporting, , , php node, .
, , Drupal, .
. , , . , , .
- , . , 2 : 1 , - .
LoginToboggan , .
php :
<?php header("Location: " . $_SERVER['HTTP_REFERER']); ?>
. php
EDIT:
$url = $_SERVER['PHP_SELF']; // or HTTP_REFERER depending on the setup
, .
Source: https://habr.com/ru/post/1713413/More articles:Как приложение для загрузки фотографий Facebook может получить доступ к локальному жесткому диску? - client-sidemqueue.h not found - cVisual Studio Team System profitable for Solo Dev - tfsHow to write internal style sheets in Zend Framework? - cssPeriodic task in Grails - grailsHow to decide to insert / remove a dead end in a non-clustered index? - sql-serverКак вы предварительно задали значения в правой части элемента Shuttle в Oracle APEX? - oracle-apexCGPath Animation - core-animationHow to model the relationship of many, many? - sqliPhone - access to XAMPP server (localhost) on my Mac on the same network - iphoneAll Articles