This pull request addresses the issue where resource navigation (create, edit, view) fails with a 404 error when Laravel Nova is configured to reside on the root domain instead of using the /nova slug. The root cause of the problem was identified as the hardcoded usage of /nova in the application code, specifically in the resource URL generation logic.
Changes
Modified the resource URL generation to use Nova's helper function for creating resource URLs. This approach dynamically respects the Nova path configuration, making the functionality compatible with Nova installations at any path.
Hi @KasparRosin! Thank you for your extensive and detailed PR and issue. Very well spotted and you I think your fix is great, so I'll merge and release it right away!
Overview
This pull request addresses the issue where resource navigation (create, edit, view) fails with a 404 error when Laravel Nova is configured to reside on the root domain instead of using the
/nova
slug. The root cause of the problem was identified as the hardcoded usage of/nova
in the application code, specifically in the resource URL generation logic.Changes
closes: #39