Skip to content

[Bug]: .goto() outside of baseURL is logged as "navigated to /" regardless of URL #42473

Description

Version

1.62.1

Steps to reproduce

if you do:

Image

it gets logged as "navigated to /" in the UI, for example:

Image

this type of truncation of output is great when you're logging lots of navigations on top of the baseURL origin, but it should not be enabled for non-baseURL navigations.

the problem can be fixed by doing essentially this:

Image

I know you don't accept PRs very easily, but if you are interesting in fixing this problem; I put a more complete commit of the fix here: 462a0fa

Expected behavior

When I navigate to various absolute urls outside of the baseURL from the playwright config, then I want the full URLs to be logged, not just the path part

Actual behavior

Both https://cnn.com and https://foxnews.com gets logged as "Navigating to /" which is hard to make sense of in the debug UI

Additional context

No response

Environment

macos 26

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions