[TYPO3] showAccessRestrictedPages and realurl

Dmitry Dulepov [typo3] dmitry at typo3.org
Mon Jun 9 08:09:26 CEST 2008


Hi!

Antonio Reher wrote:
> Let me explain: the page that is restricted is, say, id=12, which for 
> realurl is es/page1/page2.html. When I click on the link, it redirects 
> to es/login.html and has two parameters: pageId=12, which is correct, 
> and redirect_url=es.html, which isn't, right? Shouldn't ###RETURN_URL### 
> be holding the value for the restricted page's path, i.e. 
> es/page1/page2.html?
> Once I login, Typo3 redirects me to the redirect_url value, which is 
> es.html and doesn't exist.
> 
> Maybe I'm not understanding the configuration of either realurl or the 
> showAccessRestrictedPages property?

I got the problem... Firsts, RealURL configuration is not an issue here. The problem is the restriction itself. RealURL can generates path only for pages available to users. It is not RealURL limitation: TYPO3 does not provide information about restricted pages to RealURL. In other words, RealURL runs in the context of current FE user and if user does not see the page, neither RealURL can see it. TYPO3 does not allow this.

The above is my understanding of the process but this area is tricky, so I may have mistakes there.

What you can do? Create a shortcut page, which has no access restriction. It should point to restricted page. Use shortcut page in menu. It should get proper URL.

-- 
Dmitry Dulepov
Learn more about TYPO3: http://typo3bloke.net/


More information about the TYPO3-english mailing list