Inertia Absolute URL config option
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 6.9k
- Forks
- 1.1k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 57
Description
Description
Feature Request: Inertia Subdomain Navigation Support
Context:
I have a multi-tenanted application that identifies tenants using subdomains. As a result, navigating between tenants requires the use of absolute URLs instead of relative paths. Currently, when using Nuxt UI components with inertia: true, absolute URLs are not recognized as internal links. Consequently, the default behavior triggers the rendering of a standard anchor (<a>) element, causing links to open in a new tab unintentionally.
Suggested Feature:
Introduce an additional prop or option, such as inertiaSubDomain: true, to indicate that the provided absolute URL points to an internal subdomain. When enabled, this would add target="_self", ensuring the navigation occurs within the same tab via Inertia routing.
Benefit:
Many apps use subdomains like shop, admin etc. This would prevent the need to constantly add target="_self" to each subdomain link.
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how Nuxt UI components handle links when inertia: true, especially the decision that treats absolute URLs as external. Verify the behavior with absolute URLs on tenant subdomains and define completion as same-tab Inertia navigation without requiring target="_self" on each link.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nuxtjs, typescript
- Domain
- frontend, web-dev
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100