[TYPO3-core] FYI24: #10136: tslib_pibase page browser may hurt search engines by the incorrect "Next" link

Dmitry Dulepov dmitry at typo3.org
Wed Jan 14 14:31:29 CET 2009


Hi!

This is SVN patch request.

Type: bug

Branches: trunk, 4.2, 4.1

BT reference: http://bugs.typo3.org/view.php?id=10136

Problem: If there are only X pages and user somehow [1] goes to X+1, than page browser shows "Next" link active and this creates endless pages. Such links will harm search engines because pages never end. Many extensions are affected by this problem (including tt_news).

Solution: change '=' to '>=' in one line is tslib_pibase.

Notes:
1. User can create such pages by either navigating directly to the wrong URL or by going to a saved link or by going to the next page from the pre-last page when some items on the page were deleted.
2. Attached is a simple fix and a test extension. The extension provides FE plugin that shows links to pages 1, 2 and 1000 (1000 does not exist). Click page 1000 to see "Next" link linking to the page 1001. After applying the patch link is not active any more (thus no endless pages).

-- 
Dmitry Dulepov
TYPO3 core team

Mr. Harris: People say that you were the last person to speak with Jordon...
            Is that true? 
Cameron: I don't know. Are you asking me if people say I was the last person
            to talk to Jordon? Or are you asking me if I was the last person
            to talk to her? 
Mr. Harris: I guess I'm asking if you were. 
Cameron: I don't know. 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 10136.diff
Type: application/pgp-keys
Size: 801 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090114/43ca7430/attachment-0001.key 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: T3X_user_browsetest-0_0_0-z.t3x
Type: application/octet-stream
Size: 6678 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090114/43ca7430/attachment-0001.obj 


More information about the TYPO3-team-core mailing list