Skip to content

Conversation

cderv
Copy link
Collaborator

@cderv cderv commented Sep 4, 2024

closes #10710

quarto.js processing for activating link should be impacted by a query or hash part in the window.location

This simple fix ensure quarto does the categories search by comparing a clean offset path.

This has been tested and verified against a simple website with blog post. And also in browser console for quarto-web.

Test can't really be added because this is in-browser processing.

@cscheid
Copy link
Collaborator

cscheid commented Sep 5, 2024

Test can't really be added because this is in-browser processing.

Is there no way for us to do something with Playwright? (I think we don't need to in this case, but I'm trying to understand the claim you made)

@cscheid
Copy link
Collaborator

cscheid commented Sep 5, 2024

(Looks good to me!)

@cderv
Copy link
Collaborator Author

cderv commented Sep 5, 2024

Is there no way for us to do something with Playwright? (

Oh sure with playwright. I was thinking no way in our current smoke and smoke-all way.
But now I see better and indeed with playwright it will be possible.

…cation

It requires to strip any query search or hash part from the URL before comparing it to the link retrieved in listings' items.
[skip ci]
@cderv cderv force-pushed the listing/categories-links branch from 97ffff5 to 93db833 Compare September 9, 2024 09:08
- Add  a new playwright test for blog categories click
- Refactor by using same project than the other tests for blog.
@cderv
Copy link
Collaborator Author

cderv commented Sep 9, 2024

Test with playwright added.

@cderv cderv merged commit cf0b7d0 into main Sep 9, 2024
47 checks passed
@cderv cderv deleted the listing/categories-links branch September 9, 2024 11:28
@aborruso
Copy link
Contributor

aborruso commented Sep 9, 2024

Thank you very much

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.

blog output: tag links don't work from pages called with an anchor URL

3 participants