PLEASE help us help you by writing a good post!
Hello, My sitename is https://super-cactus-a43acf.netlify.app/
It is an invoice app used to generate invoice for customers. You can view past invoices in a new tab, from the main site. That is, you click on a link to view the past invoice, and you are taken to a new tab, where the past invoice loads.
This is the line of code that does that (Javascript): window.open('/view-invoice', '_blank');
I have hosted this app on vercel, and it works perfectly. However on hosting it on netlify, It works fine as well, Until I get to the part, where I try to view a past invoice, and I am taken to a new tab. Strangely, the new tab appears empty, but that is not all, the url in address tab weirdly begins to get longer, like so: https://super-cactus-a43acf.netlify.app/view-invoice/?/&/~and~/~and~/~and~/~and~/~and~/~and~/~and~/~and~/~and~/~and~/~and~/~and~/~and~/~and~/~and~/~and~/~and~/~and~/~and~/~and~/
For some reason, /~and~/ keeps getting appended to the url https://super-cactus-a43acf.netlify.app/view-invoice/, while the page remains blank, until I have to close the tab myself.
I am at lost as to what is causing that to happen.