Skip to content

[6.x] Handle non-inertia responses as page visits#18795

Merged
riasvdv merged 3 commits into6.xfrom
feature/inertia-visits
May 6, 2026
Merged

[6.x] Handle non-inertia responses as page visits#18795
riasvdv merged 3 commits into6.xfrom
feature/inertia-visits

Conversation

@riasvdv
Copy link
Copy Markdown
Contributor

@riasvdv riasvdv commented May 5, 2026

Description

This prevents Inertia from opening successful requests in a modal if it's visited through <Link> but doesn't return an Inertia request.

We can now always use <Link> and not worry about if it's a new controller/view we're accessing or a standard response

I've adjusted the settings index page as a test & example.

@brianjhanson I did not commit the built assets as to not pollute the diff

@riasvdv riasvdv requested a review from brianjhanson May 5, 2026 19:49
@semanticdiff-com
Copy link
Copy Markdown

semanticdiff-com Bot commented May 5, 2026

Review changes with  SemanticDiff

Changed Files
File Status
  resources/js/bootstrap/cp.ts  0% smaller
  resources/js/pages/SettingsIndexPage.vue  0% smaller
  src/Cp/Settings.php Unsupported file format

Copy link
Copy Markdown
Contributor

@brianjhanson brianjhanson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just updated Link -> CpLink which is our own wrapper around Link that allows us to control the styling more like our other components.

@riasvdv riasvdv merged commit 3934105 into 6.x May 6, 2026
16 checks passed
@riasvdv riasvdv deleted the feature/inertia-visits branch May 6, 2026 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants