Preview-Links created without cHash but no_cache=1 falsely converted and cached by cooluri
I configured my module for the typo3 preview-button functionallity, typo3 does not create a link with cHash, it directly creates the link with params and no_cache=1 parameter.
Cooluri will build the link (redirectOldLinksToNew) by query params and wont add a cHash becuase none is given - that is required by typical record-show-plugins (like tx_news or any other extension working with common approaches).
So, basically everything works because no_cache is also added to the params, but that - ofcourse - is wrong, because with no_cache=1 indexed_search wont work and no cache is allways bad. But the no_cache=1 link without cHash is cached by cooluri.
Maybe there should be some kind of check, if the the url is generated for preview purpose and skip the pretty-url generation.
Or should we (integrators) configure the previewlink, so it contains "ADMCMD_prev" as get parameter?
Here is the full story:
It could be fixed by cooluri with a hook
That is processed in BackendUtility::viewOnClick
If you would add the ADMCMD_prev parameter there by default it would be fine i think.
TYPO3 version is 7.5, cooluri is @9af8925