Skip to content

Params are not set correctly on self links #81

@sazzer

Description

@sazzer

If the "params" entry is not included on the route configuration then no querystring parameters are included on the self link at all.

If a "params" entry is included on the route configuration then the values are appended but not correctly formatted.

For example, when requesting a URL of '/items?offset=10&pageSize=5&q=item'. A configuration of:

hal: {}

will produce a Self link of '/items'

Whereas a configuration of

hal: {
    query: '{offset,pageSize,q}'
}

will produce a Self link of '/items10,5,item' instead of the URL that I would have expected, which is '/items?offset=10&pageSize=5&q=item'

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