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

Fall back to full page load if new url doesn't have root element #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

scottsb
Copy link

@scottsb scottsb commented Jun 15, 2020

Ideally URLs that point to pages on the site without a shared root element would be labeled with the no-ajax class and thus not trigger the PJAX behavior. However, sometimes this is missed, and before this PR, these links would simply fail to load (clicking would do nothing). This change allows the load to proceed as a full-page load. It's wasteful because it still triggers the XHR load in between, but at least the site does not break. (Using no-ajax is still the right solution to avoid this waste--this is intended only as a failsafe.)

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.

None yet

1 participant