#96667Save and preview button uses wrong pagets
Description
When using the save+preview button for a non-pages record the global pagets is being used instead of the one of the current page/folder.
I’ve got this global PageTS:
TCEMAIN.preview {
tx_news_domain_model_news {
previewPageId = 123
useDefaultLanguageRecord = 0
fieldToParameterMap {
uid = tx_news_pi1[news_preview]
}
additionalGetParameters {
tx_news_pi1.controller = News
tx_news_pi1.action = detail
}
}
}
And for a certain folder there’s this local override:
TCEMAIN.preview.tx_news_domain_model_news.previewPageId = 666
Hitting the save+preview button in that folder leads to the page 123 being opened instead of 666.
It might be related to #92409 but maybe not.