Skip to content

Commit f3d4b6b

Browse files
committed
Worked around angular $location bug.
See angular/angular.js#2833
1 parent 2de3f79 commit f3d4b6b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

projecto/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def licenses():
4747
return render_template("licenses.html")
4848

4949

50-
@app.route("/app")
50+
@app.route("/app/")
5151
def mainapp():
5252
if not current_user.is_authenticated():
5353
return redirect(url_for("main"))

static/js/login.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ $(function () {
4949
data: {assertion: assertion},
5050
success: function (res, status, xhr) {
5151
var l = window.location.pathname.length;
52-
window.location.href = "/app";
52+
window.location.href = "/app/";
5353
},
5454
error: function (xhr, status, err) {
5555
navigator.id.logout();

templates/app.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</ul>
1212
<ul class="right">
1313
<li class="has-dropdown">
14-
<a href="#/projects">Projects</a>
14+
<a href="#/">Projects</a>
1515
<ul class="dropdown" ng-controller="ProjectSwitcher">
1616
<li><a ng-click="newProject()">New Project</a></li>
1717
<li class="divider" ng-show="projectsOwned.length > 0 || projectsParticipating.length > 0"></li>

templates/master.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<div class="contain-to-grid{% if landing %} landing-nav{% endif %}">
3030
<nav class="top-bar">
3131
<ul class="title-area">
32-
<li class="name"><h1><a href="{% if landing %}/{% else %}#/home{% endif %}">Projecto</a></h1></li>
32+
<li class="name"><h1><a href="{% if landing %}/{% else %}#/{% endif %}">Projecto</a></h1></li>
3333
<li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>
3434
</ul>
3535
{% block navbar_section %}

0 commit comments

Comments
 (0)