79751131

Date: 2025-08-30 12:07:30
Score: 1
Natty:
Report link

I found a solution i just add a condition in app.tsx

const basePath = '/app'; // sub floder

// Intercept all Inertia requests to enforce the correct prefix
router.on('start', ({ detail: { visit } }) => {
    const path = visit.url.pathname;

//add prefix if needed
   if (path.startsWith('/') && !path.startsWith(basePath)) {
        visit.url.pathname = basePath + path;
    }
});
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: kamal ennaji