Skip to content

UriResolver::generate does not properly reconstruct URLs with a query fragment. #424

Closed
@TimothyBJacobs

Description

@TimothyBJacobs

The UriResolver appends the fragment to the path without a leading ? causing an incorrect URL.
Ex: http://example.org/?rest=/route becomes http://example.org/rest=/route.

https://github.com/justinrainbow/json-schema/blob/master/src/JsonSchema/Uri/UriResolver.php#L65

Happy to submit a patch.

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