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

fix: links with same path but different search params not prefetched #9189

Merged
merged 2 commits into from
Nov 28, 2023

Conversation

SpencerWhitehead7
Copy link
Contributor

@SpencerWhitehead7 SpencerWhitehead7 commented Nov 24, 2023

Changes

Links where the path is the same, but search params are not, are prefetched

Testing

e2e test

Docs

As far as I can tell from reading the docs, they do not mention prefetching behavior in this case at all. Since this change aligns it more with expected behavior, I don't think more information would need to be added, but I can write something if necessary.

Open Issue:

fix #9185

Copy link

changeset-bot bot commented Nov 24, 2023

🦋 Changeset detected

Latest commit: 0982a34

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added pkg: astro Related to the core `astro` package (scope) pr: docs A PR that includes documentation for review labels Nov 24, 2023
Copy link
Member

@bluwy bluwy left a comment

Choose a reason for hiding this comment

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

Looks great and nice tests!

Copy link
Member

@sarah11918 sarah11918 left a comment

Choose a reason for hiding this comment

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

Gave you a couple of different ways you could take this, @bluwy ! Happy for you to use either one, directly or just as "inspiration" and make a final call! 🙌

.changeset/brown-jars-lick.md Outdated Show resolved Hide resolved
Co-authored-by: Sarah Rainsberger <[email protected]>
@bluwy bluwy merged commit d90714f into withastro:main Nov 28, 2023
13 checks passed
@astrobot-houston astrobot-houston mentioned this pull request Nov 28, 2023
matthewp added a commit that referenced this pull request Nov 28, 2023
* feat: implement redesign

* fix: make it build

* feat: visual tweaks

* feat(overlay): update styling, integration endpoint

* feat: add fallback icons

* Clean up tests (#9183)

* Add `@astrojs/upgrade` package for automatic package upgrades (#8525)

Co-authored-by: Sarah Rainsberger <[email protected]>

* [ci] format

* fix: links with same path but different search params not prefetched (#9189)

Co-authored-by: Sarah Rainsberger <[email protected]>

* fix: discord icon

* chore: changeset

---------

Co-authored-by: Nate Moore <[email protected]>
Co-authored-by: Bjorn Lu <[email protected]>
Co-authored-by: Nate Moore <[email protected]>
Co-authored-by: Sarah Rainsberger <[email protected]>
Co-authored-by: Spencer Whitehead <[email protected]>
Co-authored-by: Matthew Phillips <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope) pr: docs A PR that includes documentation for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

links with the same pathname as the current page but different search params are never prefetched
3 participants