Skip to content

Conversation

@reakaleek
Copy link
Member

No description provided.

@reakaleek reakaleek requested a review from a team as a code owner June 24, 2025 21:22
@reakaleek reakaleek self-assigned this Jun 24, 2025
Copy link
Member

@Mpdreamz Mpdreamz left a comment

Choose a reason for hiding this comment

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

LGTM! one Q?

const targetDocsBuilderVersion =
event.detail.target.dataset.docsBuilderVersion
if (currentDocsBuilderVersion !== targetDocsBuilderVersion) {
window.location = event.detail.pathInfo.finalRequestPath
Copy link
Member

Choose a reason for hiding this comment

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

Should we protect setting the location to itself?

In developer tools setting window.location to the current url causes a refresh.

Copy link
Member

Choose a reason for hiding this comment

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

Asking cause I'm worried about a refresh loop.

should we protect against a redirect loop too?

@reakaleek reakaleek marked this pull request as draft June 29, 2025 20:50
@reakaleek reakaleek closed this Jul 29, 2025
@bmorelli25 bmorelli25 deleted the feature/reload-page-if-version-mismatch branch August 8, 2025 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants