Skip to content

w(Link) does not work with query parameter #114

@ILoveITScience

Description

@ILoveITScience

I have the following code:

import { Link as A } from '@dojo/framework/routing/Link';
...

path: 'module/{modulename}?{filter}&{filter2}',
    outlet: 'module',
    defaultParams: {
        filter: 'default',
        filter2: 'default2'
    },

but the w(Link ...) widgets do not work with this configuration (they are not clickable). I tried several combinations like:

w(A, { to: `${link}`, params: { modulename: parameter }, queryParams: { filter:"asdf", filter2:"adsf" }, classes: [] }, [...

w(A, { to: `${link}`, params: { modulename: parameter }, classes: [] }, [...

but they all did not work.

DoJo Version:
"@dojo/framework": "^3.0.1",
"@dojo/webpack-contrib": "^3.0.3",
"@dojo/widgets": "^3.0.0",

@agubler here is the issue as you requested

Metadata

Metadata

Assignees

No one assigned

    Labels

    breaking changeIndicates the issue/pull request would result in a breaking changebugSomething isn't workingnextIssue/Pull Request for the next major version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions