[TYPO3-english] [realurl & tt_news] Number appended to the URL

Georg Ringer typo3 at ringerge.org
Wed Jan 25 13:44:48 CET 2012


Hi,

if you got those -2 appended, you are in troubles anyway ;)
This is btw not related to languages but just to duplicate segments.

Why you are in trouble:
1) User A hits page with title "ABC" and uid 1
2) User A hits page with title "ABC" and uid 2 => this is saved then 
with "-2"
3) Admin removes realurl cache
4) Page with uid 2 is hit, and saved with "abc.html"

now same link for 2 different pages ;)

So if you know you get duplicated segments, better encode also the UID 
into the segment, e.g. something like
'alias_field' => 'concat(title, "-", uid)',

Georg


More information about the TYPO3-english mailing list