Im using caddy to pass some default querystring parameter to my application by redirecting it like so:
https://example.com/ --> https://example.com/?someQuery=someValue
The config I tried was
redir / {
if {path} is /
/ /?someQuery=someValue
}
The problem with that approach is that it also matches the path with querystring and because of that will end up in a endless redirection loop.
How do only redirect it to the querystring URI if I didnt pass it the query values already (the uri without queries)?
Maybe Im just overlooking something.