pixelmund / svemix

The Full-Stack addition to SvelteKit. Write your server code inside svelte files, handle sessions, forms and SEO easily.
https://svemix.com
MIT License
336 stars 16 forks source link

Duplicate question mark in querystring #32

Closed ariesclark closed 2 years ago

ariesclark commented 2 years ago

Not sure if this is the culprit, but it think it might be. https://github.com/svemix/svemix/blob/78e9a62d79a59ff58237e44949125bd1f7b71b05/dist/plugin/pipeline/transformers/ssr.js#L38

# Traefik reverse proxy in front of application
http-traefik-1  | 172.27.0.1 - - [24/Jan/2022:05:53:26 +0000] "GET /signup?flow=170de342-0b56-4ea7-8908-151a6efc6325 HTTP/2.0" 303 0 "-" "-" 2268 "iam-frontend@docker" "http://172.27.0.6:3000" 48ms

# Within sveltekit + svemix application
http://hostname/$__svemix__/signup??flow=170de342-0b56-4ea7-8908-151a6efc6325 
URLSearchParams { '?flow' => '170de342-0b56-4ea7-8908-151a6efc6325' }

query.has("flow") # false
query.has("?flow") # true