It works fine, if I do not use a subpage. But in that single case I want to use a subpage angebot/anfordern, which doesn’t work.
It also works if I test just a string in go-helper go('angebot/anfordern'). Anyone any ideas?
Not the issue here, but your condition doesn’t make sense.
$page->redirect() returns a field object, not a page object $page->redirect()->isNotEmpty() checking if the page is empty doesn’t make sure you have a page object
Thank you, but it still showes
“Error: Redirection error
An error occurred when connecting to myurl.de.
This problem can sometimes occur when cookies are disabled or refused.”
There was the problem. it was replying https://myurl.de/angebot
anyhow, ther must have been the same UUID. I guess by manually creating pages by copy + paste
Thanks for your support!