Closed maxcnunes closed 11 years ago
Fixed
The problem was happening because the root url should be an empty value but actually is '/'. So now is this way:
rootUrl = window.location.pathname,// usually is '/'
sammy = new Sammy.Application(function () {
if (Sammy.Title) {
this.use(Sammy.Title);
this.setTitle(config.title);
}
// define a route for the root url that usually is '/'
this.get(rootUrl, function () {
this.app.runRoute('get', startupUrl);
});
}),
For some reason the sammy is running infinitely the run route. Probably because the startupUrl is always empty.
I had to comment the code below because was always crashing the chrome. This is just a work around and have to be fixed: