Skip to content

Instantly share code, notes, and snippets.

@bettysteger
Last active January 13, 2016 19:42
Show Gist options
  • Save bettysteger/714c93492ab4d535d105 to your computer and use it in GitHub Desktop.
Save bettysteger/714c93492ab4d535d105 to your computer and use it in GitHub Desktop.
Fix for $location:nobase for angular-1.3.0-rc.0 app
<!--
Uncaught Error: [$location:nobase]
https://docs.angularjs.org/error/$location/nobase
-->
<head>
<base href="/">
</head>
/**
* It's also possible to solve this issue by changing the configuration
*/
app.config(function($locationProvider) {
$locationProvider.html5Mode({
enabled: true,
requireBase: false
});
});
@merianos
Copy link

Hi Betty, nice post 😄 You have helped me too much.

Thanks ...

@emuriga
Copy link

emuriga commented Feb 11, 2015

Works great! solved my migration issue from 1.2 to 1.3

@budkin76
Copy link

Thank you!

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