akolgano / ft_transcendence

ft_transcendence 42 school
0 stars 0 forks source link

NGINX fixes #35

Open barbayjuliette opened 1 week ago

barbayjuliette commented 1 week ago

If I try to access /friends/randomstuff I should get the 404 error page (same for the other routes) Now, I get: Uncaught SyntaxError: Unexpected token '<' main.js:1 Uncaught SyntaxError: Unexpected token '<'

Dynamic routes: /profile/username should redirect to /profile (profile.html). Same redirection as without argument.

On the /friends page, when I click on the user cards, it redirects me correctly, but when I try to acces it directly with nginx, it doesn't work.

barbayjuliette commented 1 week ago

/friends works /friends/ gives an error. Same for other routes

akolgano commented 1 week ago

On the /friends page, when I click on the user cards, it redirects me correctly, but when I try to acces it directly with nginx, it doesn't work.

Redirects where? Can you take a screen

barbayjuliette commented 1 week ago

On the /friends page, when I click on the user cards, it redirects me correctly to /profile/username but when I try to access directly /profile/username with Nginx, it doesn't work.

I can take a screenshot later if it is still not clear. Let me know