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

feat(client): support "full-reload" event with any page path #7516

Closed
wants to merge 1 commit into from

Conversation

aleclarson
Copy link
Member

@aleclarson aleclarson commented Mar 29, 2022

In other words, stop requiring a .html extension for a selective page reload, because that prevents certain pages from being selectively reloaded.

For example, if I send a "full-reload" event with a path of "/foo.html", it will not reload clients whose location is "/foo". Similarly, sending a full-reload event with a path of "/foo/index.html" will not reload "/foo" clients either. In this case, only clients at "/foo/" will be reloaded.

Therefore, we should allow sending a full-reload event with a path of "/foo" to specifically target clients at "/foo".


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

In other words, stop requiring a .html extension for a selective page reload, because
that prevents certain pages from being selectively reloaded.

For example, if I send a "full-reload" event with a `path` of "/foo.html", it will
not reload clients whose location is "/foo". Similarly, sending a full-reload event
with a path of "/foo/index.html" will not reload "/foo" clients either. In this case,
only clients at "/foo/" will be reloaded.

Therefore, we should allow sending a full-reload event with a path of "/foo" to
specifically target clients at "/foo".
@patak-dev
Copy link
Member

Closing as changing /foo.html when base is /foo/ is working correctly AFAICS, and we merged #8018 fixing the other issue you described. @aleclarson if you still see an issue, let's continue discussing in an issue or another PR.

@patak-dev patak-dev closed this May 19, 2022
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