After conducting research, I discovered several issues similar to the one I am facing.
Currently, I have a docker-compose setup on Digital Ocean with NGinx, VueJS, and a Static Landing Page.
Everything was working fine until I added a new route with a form. This route will be accessed via a link sent through email to customers with an ID for identification.
Here is the structure example:
-> landing page
-> my VueJS application
-> my router in VueJS
VueJS Configuration:
(VueJS configuration code snippet here)
VueJS Router Configuration:
(VueJS router configuration code snippet here)
NGinx Configuration:
(NGinx configuration code snippet here)
Although I have followed various documentation and Stack Overflow posts, none of them seem to resolve the issue.
Essentially, when clicking the link , the site redirects to /quiz/index.html
as defined in the location /quiz
configuration:
location /quiz {
alias /var/www/html/quiz;
expires -1;
add_header Pragma "no-cache";
add_header Cache-Control "no-store, no-cache, must-revalidate, post-check=0, pre-check=0";
try_files $uri $uri/ /quiz/index.html;
}
If you have any insights on how to resolve this issue, please let me know. Your assistance is greatly appreciated.