Hi Christoph,
The flavor itself is running inside of an iFrame. Thus, the script is reading the URL of the iFrame and not the URL that is in the browser's URL bar. So, target the parent in order to read URL parameters.
I hope this helps,
Daniel Sanchez
Consultant
SAP America, Inc.