Now it works, but is a bit inconvenient as realurl seems only to be configured for the original branch and the search somehow does not work.We now have to figure out the correct parameters to show the extension we want.

To sum it up the original problem is solved, but I will open followup tickets to get the final things working.