Эх сурвалжийг харах

[core] Home urls should be standard with a trailing slash

Romain Rigaux 12 жил өмнө
parent
commit
40d046f

+ 1 - 1
apps/beeswax/src/beeswax/tests.py

@@ -1111,7 +1111,7 @@ for x in sys.stdin:
       'create': 'Create database',
       'use_default_location': True,
     }, follow=True)
-    assert_equal_mod_whitespace("CREATE DATABASE my_db COMMENT \"foo\"", resp.context['query'].query)
+    assert_equal_mod_whitespace("CREATE DATABASE my_db COMMENT \"foo\"", resp.context['query'].query, resp.content)
 
     resp = wait_for_query_to_finish(self.client, resp, max=180.0)
     assert_true('my_db' in resp.context['databases'], resp)

+ 2 - 2
desktop/core/src/desktop/templates/home.mako

@@ -24,7 +24,7 @@ ${ commonheader(_('Home'), "home", user) | n,unicode }
 <%def name="app_link(app, label=None, extra_path = '')">
   % if app in apps:
   <li>
-    <a href="/${ app }${ extra_path }"  title="${ apps[app].nice_name }" class="app-tooltips">
+    <a href="/${ app }/${ extra_path }"  title="${ apps[app].nice_name }" class="app-tooltips">
       <i class="icon-double-angle-right"></i> ${ label }
     </a>
   </li>
@@ -96,7 +96,7 @@ ${ commonheader(_('Home'), "home", user) | n,unicode }
         <div class="widget-content">
           <ul>
             ${ app_link("oozie", _('Dashboard')) }
-            ${ app_link("oozie", _('Editor'), "/list_workflows/") }
+            ${ app_link("oozie", _('Editor'), "list_workflows/") }
           </ul>
         </div>
       </div>