diff options
Diffstat (limited to 'demos/personal')
-rw-r--r-- | demos/personal/protected/Pages/UserLogin.php | 2 | ||||
-rw-r--r-- | demos/personal/protected/application.xml | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/demos/personal/protected/Pages/UserLogin.php b/demos/personal/protected/Pages/UserLogin.php index ba33f1fa..ce653179 100644 --- a/demos/personal/protected/Pages/UserLogin.php +++ b/demos/personal/protected/Pages/UserLogin.php @@ -13,7 +13,7 @@ class UserLogin extends TPage {
parent::onLoadComplete($param);
if($this->IsPostBack && $this->IsValid)
- $this->Response->redirect($this->Request['ReturnUrl']);
+ $this->Response->redirect($this->Application->getModule('auth')->getReturnUrl());
}
}
diff --git a/demos/personal/protected/application.xml b/demos/personal/protected/application.xml index 5015bab0..4c26afec 100644 --- a/demos/personal/protected/application.xml +++ b/demos/personal/protected/application.xml @@ -6,6 +6,9 @@ <!-- Remove this comment mark to enable caching
<module id="cache" class="System.Data.TSqliteCache" />
-->
+ <!-- Remove this comment mark to enable PATH url format
+ <module id="request" class="THttpRequest" UrlFormat="Path" />
+ -->
<module id="session" class="THttpSession" />
<module id="log" class="System.Log.TLogRouter">
<route class="TBrowserLogRoute" Categories="System.Web.UI.TPage" />
|