-
Notifications
You must be signed in to change notification settings - Fork 433
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 navigating to the turbo-root does not use Turbo Drive #1341
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @leofeyer, thanks. I did a quick first pass and left minor styling suggestions.
@@ -25,7 +25,7 @@ export function getExtension(url) { | |||
} | |||
|
|||
export function isPrefixedBy(baseURL, url) { | |||
const prefix = getPrefix(url) | |||
const prefix = getPrefix(url) || '/' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const prefix = getPrefix(url) || '/' | |
const prefix = getPrefix(url) || "/" |
import { assert } from "chai" | ||
import { nextBody, pathname, visitAction } from "../helpers/page" | ||
|
||
test("test visiting a location inside the root", async ({ page }) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test("test visiting a location inside the root", async ({ page }) => { | |
test("visiting a location inside the root", async ({ page }) => { |
assert.notEqual(await visitAction(page), "load") | ||
}) | ||
|
||
test("test visiting the root itself", async ({ page }) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test("test visiting the root itself", async ({ page }) => { | |
test("visiting the root itself", async ({ page }) => { |
assert.notEqual(await visitAction(page), "load") | ||
}) | ||
|
||
test("test visiting a location outside the root", async ({ page }) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test("test visiting a location outside the root", async ({ page }) => { | |
test("visiting a location outside the root", async ({ page }) => { |
Fixes #912
This is just a copy of #913 with the merge conflicts resolved, so credits should go to @tobyzerner.