unmonastery / untransit

Public Transport in Matera and beyond
Other
3 stars 1 forks source link

Not working action paths like test/:id #1

Closed mstn closed 10 years ago

mstn commented 10 years ago

See issue https://github.com/chaplinjs/chaplin-boilerplate-plain/issues/14

mstn commented 10 years ago

@fvitullo has kindly refactored the code for express (thanks!). See https://github.com/unmonastery/untransit/pull/6

We should give a try to setup action paths with express.

cdbkr commented 10 years ago

Hiya!! Actually, Im looking for a proper and clean solution to solve this case. Any suggest?

mstn commented 10 years ago

@fvitullo sorry for late reply. I do not know express very well. However, I think the trick is to point 404 to index.html.

@elf-pavlik I saw you used nginx on the "production" server. You should do the same also for nginx, I suppose.

mstn commented 10 years ago

example of express with pushstate http://heu.io/posts/push-state-with-nodejs-and-express/

mstn commented 10 years ago

I solved the problem. Quite stupid mistake, I used wrong urls with ./ instead of /