Skip to content

404 handled weirdly #34

Open
Open
@AdriVanHoudt

Description

@AdriVanHoudt

So this is probably a thing with the router or something but I found this through the app generated by this lib so I thought I would start here ^^

My route config looks like

app.route('/', require('./views/main'))
app.route('/title', require('./views/title'))
app.route('/test/:id', require('./views/test'))
app.route('*', require('./views/404'))

after adding 1 test route (with nothing special in it, just prints out the state)

Now when I add a button that does a pushState to /test/4?a=4 that works great.
Then I reload the current page and I get No route found for /test/1?a=4.

I tried some stuff and saw that choo passes a default /404 route for, well, 404's :P which isn't there.
I would suspect it to go to * maybe but that doesn't seem the case.

Now when I add

app.route('/404', require('./views/404'))

Everything seems to work, reloading on the state actually loads the right view.

I'll be glad to look into this more or give you more info if you need it

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