Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

htmx:invalidPath after migration to 2.0 #2642

Closed
TheLegs opened this issue Jun 18, 2024 · 2 comments
Closed

htmx:invalidPath after migration to 2.0 #2642

TheLegs opened this issue Jun 18, 2024 · 2 comments
Labels

Comments

@TheLegs
Copy link

TheLegs commented Jun 18, 2024

I have a tag set up like this:

<div id="test123" class="log-viewer-box loading" hx-get="https://unpkg.com/htmx.org/README.md" hx-indicator="#log-test123-spinner" hx-trigger="load" hx-target="this" hx-swap="scroll:bottom">

No matter what URL I put, it is working with 1.9.12, but as soon as I switch to 2.0.0 it shows htmx:invalidPath in the log with no further details.

I have tried both unminified and minified versions, specifically I have tried:

I have not configured any parameter such as self htmx.config.selfRequestsOnly, so it should be left to default false, but just to be on the safe side I have even tried to make it explicit with <meta name="htmx-config" content='{"selfRequestsOnly":false}'>, unfortunately with no change.

Workaround is to roll back to 1.9.12, which still works perfectly.

@alexadamski
Copy link

From the 2.0.0 Changelog:
htmx.config.selfRequestsOnly now defaults to true rather than false

@Telroshan Telroshan added the 2.0 label Jun 18, 2024
@1cg
Copy link
Contributor

1cg commented Jun 18, 2024

yep, we default to selfRequestOnly now, revert it with:

<meta name="htmx-config" content='{"selfRequestsOnly":false}'> 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants