Skip to content

How to use pathFor have id like {{pathFor route='index.resource.show'}}/{{data._id}} #1604

@chreounsary

Description

@chreounsary

In router
Router.group('/index', 'index', function() {
this.route('/', {name: 'dashboard', sitebar: true, navbarTop: false});
this.group('/resource', 'resource', function() {
this.route('/:id/resource', {
name: 'show',
});
});
});
When i click it show http://localhost:3000/Fxc3rYgxdWmvPWyi6

i want this http://localhost:3000/index/resource/Fxc3rYgxdWmvPWyi6

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