I am trying to set up a RouteEnhacer for the TYPO3 extension web2pdf to rewrite URLs like https://example.com/subpage/?tx_web2pdf_pi1[action]=generatePdfLink&tx_web2pdf_pi1[argument]=printPage&tx_web2pdf_pi1[controller]=Pdf&cHash=123456789 to https://example.com/subpage/pdf/.
By using …
routeEnhancers:
Web2pdf:
type: Plugin
routePath: '/pdf/{argument}'
namespace: 'tx_web2pdf_pi1'
aspects:
argument:
type: StaticValueMapper
map:
1: printPage
… I already got the URLs a bit shorter:
Can the routing be optimized further so that I get the desired short URL?
I suspect an Extbase route enhancer would be better, but my attempts have all failed and no rewriting has taken place.