Errors with links to paginated pages

Having some problems with porting a Kirby 2 site to Kirby 3.
Specifically errors with links to paginated pages.

Paginated page URL’s are given as:
http://domain.test/articles/page:2?%2Farticles=

rather than what they should be:

http://domain.test/articles/page:2

BUT even if I correct the URL to say:
http://domain.test/articles/page:2
and then click on that link, it cannot find the page and 404 errors.

It is like the webserver is not recognising the /page:2 element…

Now I also have the orginal Kirby 2 website on the same server and this works as expected, produces the correct link URL and links to it correctly.

I can use nginx or caddy and both work with K2 but not with Kirby 3

Anyone any ideas? I am a bit stumped.

Kirby 3.3.5
PHP 7.4.5
nginx/1.17.10

Nginx conf relevant bits:

  location / {
    try_files $uri $uri/ /index.php?$uri&$args;
  }

I can also use Caddy and have the same issues.
Caddy file relevant bits:

rewrite {
  to {path} {path}/ /index.php?{query}
}

Apart from this ‘error with links to paginated page’, the sites works as expected.

Hm, no idea with nginx, but the config here looks a bit different: Nginx issues - 500 error for media and panel 'No input file specified'

Thanks Sonja, I had a slightly wrong config, somehow different to the K2 version. The problem took a bit of finding, but it now works so please mark this as solved. Or do I do that?

Definately my error, so I apologise.

No worries!