iron-meteor / iron-router

A client and server side router designed specifically for Meteor.
MIT License
1.98k stars 413 forks source link

useHashPaths for client-side only Meteor not working #1480

Open brettg2 opened 8 years ago

brettg2 commented 8 years ago

I am trying to build our Meteor application for client-side hosting only (without the node and mongo backend)

We are using the meteor-build-client package @ https://github.com/frozeman/meteor-build-client

We're also using iron-router as the routing configuration and hosting the index.html from http://localhost/someFolder/app/index.html (in our case this is through an IIS server and not meteor's built in web host)

We are initializing the client side routing configuration for iron router with:

Iron.Location.configure({useHashPaths: true});

When initially visiting a route such as:

http://localhost/someFolder/app/#!the-route-name

... the application will redirect the user to:

http://localhost/the-route-name

Which in our case will not work. Is there a simple and easy way to work around this using iron-router? Do we need to try some other router? Possibly FlowRouter? Any help would be great. Thank you!