On my page I have a subpage somepage.com/press, now when I send someone that direct link to somepage…com/press, it will always load somepage…com at first, then the second time when somepage…com/press is entered, it actually loads that subpage…
I tried playing around with routes and redirects of site.yaml and htcaccess, but without success.
Can you give me a hint on why this behaviour happens? Because I have no clue at the moment…
Thanks, Vincent
(the double dots in the links are due to “new users can only post two links in a post”)
So the direct link I want to send to people is https://12-s.de/presse
On first visit that link it will redirect to 12-s.de, when you then type in the /presse it will lead you to the actual subpage
Edit: That actually happens with all subpages, maybe it’s just a simple caching problem…?
Hmm you’re right, it leads to the correct page.
However, when I type in the url (including subpage and after clearing browser cache) by hand it redirects to the mainpage…
That’s really weird, but I guess I can live with that as long as clicking the links works.
It wasn’t in the grav configuration, but in the nginx server block.
I simply forgot to put “$request_uri” after “return 301 https://$host” when redirecting from http to https, so of course it would just redirect to the mainpage.
You brought me on the right track here, awesome! Thanks again!