Skip to content

Cannot use urlSuffix with paths #155

@Canna71

Description

@Canna71

I think the issue is in this code in frame.ts:

            if (suffix.pathname !== "/") {
                src.pathname += suffix.pathname;
            }

if urlSuffix contains a path (e.g.: foo/bar/page) then by simply concatenating strings, you wnd up with a double forward slash:

https://www.website.com//foo/bar/page

which will lead to 404.
I guess it should be handled by properly appending path avoiding slashes duplications.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions