AMP pages show ERR_TOO_MANY_REDIRECTS on dynamic routes


I have a routes.yaml configuration like this:

    permalink: /tag-example/{slug}/
    filter: tag:tag-example
    template: tag-example
    data: tag.tag-example

The problem is that I also have AMP activated and the pages generated by that dynamic route show ERR_TOO_MANY_REDIRECTS in the browser. That is, any page whose path is{slug}/amp/ show this error.

I have checked that the error does not exist in the tags that I do not have with dynamic route. Example:{slug}/amp/

Anyone have any ideas how to solve this? Thanks in advance

Sorry for not commenting before: I’m using Ghost Pro 4.1.0

Doesn’t anyone have an answer on this? It surprises me that it happens to no one else, being the dynamic routes something so used. Thanks