inertia-laravel icon indicating copy to clipboard operation
inertia-laravel copied to clipboard

fix: subdirectory project link error

Open chrisAlkemy opened this issue 2 years ago • 3 comments

Working on a project I noticed that when I was under a sub directory the links were generated in a strange way.

Example:

http://www.example.com/project1/first-page

I try to navigate to second-page, it generates this:

http://www.example.com/project1/project1/second-page

chrisAlkemy avatar Aug 11 '22 16:08 chrisAlkemy

See also #421

Duplicate of #422

Tofandel avatar Aug 22 '22 20:08 Tofandel

I'm watching all these issues: current, #421 & #422 I spent almost 2 days figuring out how to trick it via nginx/confs but it seems that this is the only/best workaround. Hopefully, one of them will be merged soon.

CristianSitov avatar Aug 25 '22 15:08 CristianSitov

I'm watching all these issues: current, #421 & #422 I spent almost 2 days figuring out how to trick it via nginx/confs but it seems that this is the only/best workaround. Hopefully, one of them will be merged soon.

yeah well, the earliest fix PR for this is from back in January - so it's taking a while to get merged and a new version published

vertexportus avatar Sep 14 '22 02:09 vertexportus

Thanks for the PR, and I'm sorry for the delay! I've merged #592 which should address this issue without adding the scheme and host, which may be a breaking change for some.

jessarcher avatar Mar 08 '24 01:03 jessarcher