Skip to content

TASK: 9.0 remove leftover manual context path string operations #3731

Open
@mhsdesign

Description

@mhsdesign

With #2178 we moved into a direction of rather fetching context paths from the server than manually guessing them in the client.

The current 9.0-dev still shows 21 references to code like .split('@')

const contextString = this.props.siteNodeContextPath.split('@')[1];
const subject = `${this.props.options.createNew.path}@${contextString}`;

This will probably lead to hard to discover bugs, so we should rather make sure to NEVER manipulate the contextPath in the client. (possibly even by restricting the split operation? but at least by going through the code while looking at .split('@')

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions