Skip to content

Commit 41d8a58

Browse files
Another comment fix
1 parent 7e34875 commit 41d8a58

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Components/Web.JS/src/Services/NavigationEnhancement.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ async function performEnhancedPageLoad(internalDestinationHref: string) {
8383
// For any non-success response that has no content at all, make up our own error UI
8484
document.documentElement.innerHTML = `Error: ${response.status} ${response.statusText}`;
8585
} else {
86-
// For any other response, it's success but not HTML. It might be plain text, or an image,
87-
// or something else. Since we can't know what to do with it, fall back on a full reload,
88-
// even though that means we have to request the content a second time.
86+
// For any other response, it's not HTML and we don't know what to do. It might be plain text,
87+
// or an image, or something else. So fall back on a full reload, even though that means we
88+
// have to request the content a second time.
8989
// The ? trick here is the same workaround as described in #10839, and without it, the user
9090
// would not be able to use the back button afterwards.
9191
history.replaceState(null, '', internalDestinationHref + '?');

0 commit comments

Comments
 (0)