TYPO3 page type in AJAX calls does not work as expected

345 views Asked by At

I've defined a new page type in TypoScript:

myAjaxPage = PAGE
myAjaxPage {
   typeNum = 9999
}

When I call a TYPO3 page this way all works as expected:

http://www.mydomain.de/?type=999

But when I call a subpage like this:

http://www.mydomain.de/subpage/?type=999

the page type is ignored.

Why?

Thanks!

1

There are 1 answers

1
lisardo On BEST ANSWER

I found the answer: seems to be a bug or quirk:

https://forge.typo3.org/issues/87104

it works when i add the page type in the route enhancer:

routeEnhancers:
  PageTypeSuffix:
    type: PageType
    default: /
    index: ''
    map:
      /: 0
      myAjax.html: 87035

Then you are able to call the page with its pageType:

http://mydomain/de/myAxax.html

not very handy ...