ampersand-router icon indicating copy to clipboard operation
ampersand-router copied to clipboard

Clientside router with fallbacks for browsers that don't support pushState. Mostly lifted from Backbone.js.

Results 9 ampersand-router issues
Sort by recently updated
recently updated
newest added

When `root` isn't set to "/", I've noticed some unexpected behaviour with regard to the root url when it has a query string. An example: ```js const Router = AmpersandRouter.extend({...

bug
question

Hello, I have a bug with Firefox only... if I go to : `/some-page`, and scroll to its bottom, and then change page to `/some-other-page` , I land on the...

When a non-empty root is set during router start, routing of clicked anchors fails. This happens because the anchor pathname is used, which includes the root, which is passed to...

bug

In some navigation cases, the `popstate` event is not fired when URL navigation happens. But, `pageshow` is. So, use that event as an additional URL change cue.

Some currently undocumented methods of the history API (like `getFragment`) are very useful for users of this package - any change you'd consider documenting them publicly? :smile:

documentation
new contributor

I noticed a bug when dealing with encoded percent signs in urls. Take the following simple example: ``` store/search/ ``` with a query value of `%` and proper encoding this...

We have a desire to have our error reporting service query this to inspect the most recent user navigation actions. Thoughts?

Is there a reason that I cannot use History without Router and visa versa? I'm curious is this was a design decision or just the result of the Backbone port....

enhancement
question

Hey - great to finally see a standalone JS router with a hash fallback! Thank you. Documentation regarding what browsers are supported would be great . . . specifically what...

documentation