From 6df6830533c4e79dbaf052f83c674fb658abc1cb Mon Sep 17 00:00:00 2001 From: Joseph Nuthalapati Date: Wed, 31 Jan 2018 12:54:28 +0530 Subject: [PATCH] jsxc: consistent url format Made urls end with a `/` character so that it's consistent with other apps. plinth-tester would struggle to find the page otherwise. Also update the client information in manifest to correct an incorrect URL to launch JSXC. Signed-off-by: Joseph Nuthalapati Signed-off-by: Sunil Mohan Adapa Reviewed-by: Sunil Mohan Adapa --- plinth/modules/jsxc/manifest.py | 2 +- plinth/modules/jsxc/urls.py | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/plinth/modules/jsxc/manifest.py b/plinth/modules/jsxc/manifest.py index 30c2bf56d..234e80caa 100644 --- a/plinth/modules/jsxc/manifest.py +++ b/plinth/modules/jsxc/manifest.py @@ -24,6 +24,6 @@ clients = validate([{ _('JSXC'), 'platforms': [{ 'type': 'web', - 'url': '/jsxc' + 'url': '/plinth/apps/jsxc/jsxc/' }] }]) diff --git a/plinth/modules/jsxc/urls.py b/plinth/modules/jsxc/urls.py index 70e2fd254..a9f33eeb2 100644 --- a/plinth/modules/jsxc/urls.py +++ b/plinth/modules/jsxc/urls.py @@ -14,7 +14,6 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . # - """ URLs for the JSXC module """ @@ -23,8 +22,7 @@ from django.conf.urls import url from .views import JSXCServiceView, JsxcView - urlpatterns = [ - url(r'^apps/jsxc$', JSXCServiceView.as_view(), name='index'), - url(r'^apps/jsxc/jsxc$', JsxcView.as_view(), name='jsxc') + url(r'^apps/jsxc/$', JSXCServiceView.as_view(), name='index'), + url(r'^apps/jsxc/jsxc/$', JsxcView.as_view(), name='jsxc') ]