georgringer / news

TYPO3 Extension news
GNU General Public License v2.0
264 stars 358 forks source link

RouteEnhancer showing unwanted parameter #2372

Closed kj-coupling closed 3 months ago

kj-coupling commented 6 months ago

Bug Report

Current Behavior I'm not really sure if this problem is actualy a bug or missconfiguration. I've installed the news extension as always and wrote some lines for routeEnhancer. It worked on all my other TYPO3 installation but all of the sudden it doesnt.

Expected behavior/output I want the route to be /list-view/detail-view/news-title. Its working fine, but after the "news-title" the URL continues with this parameters: {news-titel}tx_news_pi1%5Bday%5D=26&tx_news_pi1%5Bmonth%5D=3&tx_news_pi1%5Byear%5D=2024&cHash=79da57fe3879139b3f9347b045910432

Am I missing something? I've tried some alternatives but still the same. List/Detail and Title working fine but month,day,year and chash still there. Is there something i need to considert in this version on TYPO3 and news.

routeEnhancer: NewsPlugin: type: Extbase extension: News plugin: Pi1 routes:

Environment

Thank you all in advance.

froemken commented 4 months ago

Hello @kj-coupling

Please use routeEnhancers with s as last letter and the world keeps turning again ;-)

From my side this ticket is solved

kj-coupling commented 4 months ago

Hallo @froemken

I've noticed this mistake a while ago :)

`routeEnhancers: NewsPlugin: type: Extbase extension: News plugin: Pi1 routes:

I've already tried different ways to configure this routeEnhancher..but still. I get the /currentPage/News-title corrent but after the title ?tx_news_pi1%5Bday%5D=18&tx_news_pi1%5Bmonth%5D=4&tx_news_pi1%5Byear%5D=2024&cHash=377f097992c57c789e6d8493741906ec.

froemken commented 4 months ago

Hello @kj-coupling

please use three of these ticks ``` to format your multi-lined code. It's damn hard to read. Or use the code button here in editor. You want to format the dates in uri? Please adapt your RouteEnhancer as decribed here:

https://docs.typo3.org/p/georgringer/news/11.4/en-us/Tutorials/BestPractice/Routing/Index.html#human-readable-dates

kj-coupling commented 4 months ago

Hello @froemken ,

sorry for that.

I've tried your suggestion: https://docs.typo3.org/p/georgringer/news/11.4/en-us/Tutorials/BestPractice/Routing/Index.html#human-readable-dates

It works like expected in TYPO3 11.5 but not in TYPO2 12.4. I dont need this part of the URL at all tx_news_pi1%5Bday%5D=18&tx_news_pi1%5Bmonth%5D=4&tx_news_pi1%5Byear%5D=2024&cHash=377f097992c57c789e6d8493741906ec. I've rewrote the Enhancer in different ways, but still, page and title are changing, but the rest still the same.

Is there something to consider in TYPO3 12.4? I am not using any other Extension - its a fresh installed TYPO3.

thanks

froemken commented 3 months ago

@kj-coupling

I have no clue what you're doing. The URL looks like an archive URL. Please try default news plugin with list/detail and default news template and keep archive settings disabled. Is the URL now correct?

Stefan