TYPO3: 404 for restricted access page instead of login form

Viewed 6034

I have a link pointing to restricted page. When I access the link directly in logout status, its redirect to 404. Actually it should redirect to login form.

I tried:

config {
   typolinkLinkAccessRestrictedPages=PAGE_ID 
   typolinkLinkAccessRestrictedPages_addParams = &return_url=###RETURN_URL###&pageId=###PAGE_ID###
   }

Not working.

Also I tried the login status redirect plugin, no use.

Anyone know how to do this? I am using TYPO3 version 4.4.8.

6 Answers
Related