AlexGalays / abyssa-js

Framework agnostic hierarchical router for single page applications
MIT License
71 stars 9 forks source link

Customize hashbang #23

Closed pauldijou closed 10 years ago

pauldijou commented 10 years ago

Hi there,

I know that Abyssa can automatically detect the hash part of the url even if there are multiple hash in it, but still, would it be possible to customize the value of the hashbang which is the fake one?

Why do I need that? Because stupid Disqus only works correctly out of the box with a true hashbang like #!. It is a pain in the ass, but that's it or doing DOM manipulation to fully kill Disqus in a SPA and then reload it.

Thanks !

// Customize with a hashbang '#!'
Router.configure({
  hashPrefix: '!'
});
AlexGalays commented 10 years ago

Yeah, seems like a good idea :)

pauldijou commented 10 years ago

See #28 for PR.