Skip to content

Instantly share code, notes, and snippets.

@dashawk
Last active January 30, 2017 03:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dashawk/cf04bf3f35e82e99c1b3b6c2717fbf02 to your computer and use it in GitHub Desktop.
Save dashawk/cf04bf3f35e82e99c1b3b6c2717fbf02 to your computer and use it in GitHub Desktop.
[FIX] generator-hottowel-html5mode(false)
routerHelper.configureStates(getStates(levels), function () {
var redirects = '/404';
if($state.current.url === '^') {
redirects = '/'; // Or Whatever your homepage is
}
return redirects;
});
@dashawk
Copy link
Author

dashawk commented Jan 30, 2017

This will resolve the routing if html5mode is false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment