pattern: "/kontakt/", state.source.data["/kontakt/"].isContactPage = true;
Your contact page appears to be working. Could you provide more context around this issue, e.g. why you need the querystring parameter?
just error testing, it should show 404 instead of internal server error, but it’s giving error, so what’s the fix instead of rewriting code.
Since you changed the title, what’s the fix @juanma
I moved your question to an isolated post so everything is more organized,
Regarding your question
Can you please provide a repo or code-sandbox with your code? This is especially helpful to find solutions of technical issues with specific code