Unaccessible page redirects to an other in rootline without transmission of pid
|Status:||Needs Feedback||Start date:||2006-12-07|
|Priority:||Should have||Due date:|
The following is from http://wiki.typo3.org/index.php/Newloginbox/Wishlist:
- If a page is not accessible because of frontend-user-rights, the rootline is searched upwards for the first accessible page.
- The original requested page-id is stored but not communicated to the new page.
- A visitor is requesting an access-restricted page.
- index.php calls typo3/sysext/cms/tslib/index_ts.php
- On the lines 319+331 of index_ts.php determineId() is called
- determineId() calls fetch_the_id() (750,770,784 in class.tslib_fe.php)
- fetch_the_id() now stores on line 872 (same class) the original requested id in a local variable $requestedId which is not used anymore further.
- on line 873 an accessible page is searched: getPageAndRootLineWithDomain() > getPageAndRootLine() on lines 912ff.
If the requested page-id is not accessible with the current user-rights the rootline is being searched upwards until an accessible page is found and the requested page-id is overwritten with that page.
- As far as I see the page that is effectively called does not "know" about the original requested page - which does not make sense in every case, i.e. the requested page is a shortcut. The only hint is the http_referrer which IMHO isn't useful for this situation
It would be nice if a patch can be created for T3 4 ++ and made available as an extension or as part of a bugfix version.
This is important for the use of ext newloginbox
(issue imported from #M4619)
Updated by Martin Kutschker over 6 years ago
Why do you need the value and where do want the page "to know the value"? eg instead of a local variable a property of $TSFE could be used.
So any script may read $TSFE->id and have a look at $TSFE->requestedId.
Updated by Andreas Balzer over 6 years ago
As I'm no developer of newloginbox I don't know where this should be integrated. It would just be nice, if an extension can read that value and work with it.. So I guess it's up to your choice.