Skip to content

Paths inside a router should be defined as relative #9

@alperozisik

Description

@alperozisik
        StackRouter.of({
            path: "/pages",
            to: "/pages/page1",
            routes: [
                Route.of({
                    path: "/pages/page1",
                    build: (match, state, router) => new Page1(state.data, router)
                }),
                Route.of({
                    path: "/pages2/page3",  // <-- There pages2
                    build: (match, state, router, view) => {
                        return new Page2(Object.assign({ place: 2 }, state.data), router);
                    }
                })
            ]
        }),

This definition is not valid, also it should be possible. This is too prone to the Errors.
This item is important

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesttaskTask to complete

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions