Comments (4)
How are you navigating? Are these calls to router.navigate or are they via a
click events or what?
from ampersand-router.
In this case I was just testing navigation by entering URLs in the browser.
from ampersand-router.
@mnquintana this is expected behaviour then. When you enter url in the browser, then request will always be send and handled by server itself.
To solve it, you have to modify your server to use wildcard route, catch all requests and always send back your index.html file.
from ampersand-router.
Thanks @kamilogorek! I thought that's what I had to do, but I think what threw me was that I couldn't find the wildcard route anywhere in the sample app's routes yesterday - now I see that it's in the moonboots config. Thanks again! 🍻
from ampersand-router.
Related Issues (20)
- pushState should be true by default when starting history HOT 2
- {trigger: true} should be the default for history.navigate method.
- Trigger current route callback again HOT 9
- is a "catchAll" route impossible by design? HOT 1
- event binding fails while initialize new Router(options) HOT 4
- Incorrect routing of anchors when root is set HOT 3
- Document browser support
- Hash changes are impossible to follow HOT 3
- ampersand-router pulls in underscore HOT 4
- Extract History and Router into independent modules. HOT 1
- Question: no route change detection by default? HOT 1
- Basic readme example not cleaning up stuff? HOT 1
- Feature Request: make user navigation history exportable
- Last index in execute args is always null HOT 1
- encoded "%" gets stripped fragment in navigate call
- Document history API HOT 1
- What about the order of the routes-property when JavaScript Object properties have no inherent order?
- add event after navigate
- search part of location is misinterpreted as fragment when root is not "/"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ampersand-router.