diff piecrust/admin/views/menu.py @ 934:98430e7143d2

admin: The link to the panel's dashboard works when we are not at the root.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 04 Oct 2017 09:11:58 -0700
parents dcdec4b951a1
children dff873f11541
line wrap: on
line diff
--- a/piecrust/admin/views/menu.py	Wed Oct 04 09:11:17 2017 -0700
+++ b/piecrust/admin/views/menu.py	Wed Oct 04 09:11:58 2017 -0700
@@ -6,7 +6,7 @@
 def get_menu_context():
     entries = []
     entries.append({
-        'url': '/',
+        'url': url_for('FoodTruck.index'),
         'title': "Dashboard",
         'icon': 'speedometer'})