404 errors when deploying at a subdirectory

@adaptable-uakari how can you figure the context path in the client?

i’m still getting 404s when i deploy this under a sub-directory path

Bro did you find the solution? If no please can you share me your constants.ts file (/frontend/util/constants.ts)
This needs to be same as sub directory (ex.: export const LOGIN : string = ‘/my-app/login’; ).

But still this means you have to manage logout by yourself and I don’t suggest to use this. Also after logout it you want to login again it doesn’t work as it should.

@adaptable-uakari @secure-leopard @zen-quetzal please is there a solution for this? I have the same issue and i tried to add this line on application.properties but still it doesn’t work:

server.servlet.contextPath=/my-app
server.servlet.context-path=/my-app

@outstanding-llama If you set server.servlet.context-path=/app then you also have to adjust the routes in the frontend

@adaptable-uakari Yes i already did that but it doesn’t work well on logout, since hilla manages auth state. Also if i do work around about redirect path after logout, when I login again it redirects for ex: /app/app

I haven’t figured out yet how to fix this issue, but i find it quite a problem to manage paths of front-end views like this.

Thank you for your answer, support and contribution to dev world. đŸ©·

Thank you. Unfortunately I’m not a Hilla expert. I hope some else can help