Use #/ annotation instead of HTML5 base.

This commit is contained in:
Alexis Lahouze 2016-02-08 22:27:29 +01:00
parent 41d8a202fa
commit cfd52305f7
3 changed files with 3 additions and 10 deletions

View File

@ -75,11 +75,6 @@ angular.module('accountant', [
}]) }])
.config(['$locationProvider', function($locationProvider) {
// Enable HTML5 mode.
$locationProvider.html5Mode(true);
}])
.config(['$storageProvider', function($storageProvider) { .config(['$storageProvider', function($storageProvider) {
// Configure storage // Configure storage
// Set global prefix for stored keys // Set global prefix for stored keys

View File

@ -43,7 +43,7 @@
e-placeholder="Nom du compte" e-placeholder="Nom du compte"
e-style="width: 100%" e-style="width: 100%"
e-name="name" e-form="rowform" e-required> e-name="name" e-form="rowform" e-required>
<a href="account/{{ account.id }}/operations">{{ account.name }}</a> <a href="#/account/{{ account.id }}/operations">{{ account.name }}</a>
</span> </span>
</td> </td>
@ -102,7 +102,7 @@
<!-- Open account scheduler. --> <!-- Open account scheduler. -->
<a class="btn btn-default" <a class="btn btn-default"
ng-if="account.id" ng-if="account.id"
href="account/{{ account.id }}/scheduler"> href="#/account/{{ account.id }}/scheduler">
<span class="fa fa-clock-o"></span> <span class="fa fa-clock-o"></span>
</a> </a>
</div> </div>

View File

@ -23,8 +23,6 @@
<!-- Title --> <!-- Title -->
<title>Accountant</title> <title>Accountant</title>
<base href="{{ url_for('frontend.index') }}">
<!-- main css --> <!-- main css -->
{% assets 'frontend_css' %} {% assets 'frontend_css' %}
<link href="{{ ASSET_URL }}" rel="stylesheet"> <link href="{{ ASSET_URL }}" rel="stylesheet">
@ -47,7 +45,7 @@
<div class="container-fluid"> <div class="container-fluid">
<!-- Brand --> <!-- Brand -->
<div class="navbar-header"> <div class="navbar-header">
<a class="navbar-brand" href="accounts">&nbsp;Accountant</a> <a class="navbar-brand" href="#/accounts">&nbsp;Accountant</a>
</div> </div>
</div> </div>
</nav> </nav>