Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Question about normalizedParams in frontend sub-requests #577

@nhovratov

Description

@nhovratov

Not sure if this is the correct place to open the issue, however I have a problem migrating Functional Tests from v12 to v13 with the latest version of the testing framework:

I have a test, where I am checking for asset paths in the output HTML. The problem now is, since v13 the paths aren't prefixed anymore. See failing run: https://github.com/nhovratov/content-blocks/actions/runs/9550659756/job/26323141221

While digging deeper, it looks like the property "sitePath" from normalizedParams is different in both versions. This property is used when absRefPrefix is set to "auto", which is always the case in sub requests.

Here some debug outputs:

v12 (sitePath: "/")
Bildschirmfoto von 2024-06-19 18-42-55

v13 (sitePath: ""), siteScript "ttp" also seems cut off.
Bildschirmfoto 2024-06-19 um 18 38 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