diff --git a/InvenTree/InvenTree/urls.py b/InvenTree/InvenTree/urls.py index 3f018e15ad..0d75fb2938 100644 --- a/InvenTree/InvenTree/urls.py +++ b/InvenTree/InvenTree/urls.py @@ -179,7 +179,7 @@ urlpatterns = [ url(r'^api-doc/', include_docs_urls(title='InvenTree API')), # plugins - url(f'^{settings.PLUGIN_URL}/', include(interation_urls)), + url(f'^{settings.PLUGIN_URL}/', include((interation_urls, 'plugin'))), url(r'^markdownx/', include('markdownx.urls')), ] diff --git a/InvenTree/plugins/integration/integration.py b/InvenTree/plugins/integration/integration.py index 5690dfe2be..695cf02067 100644 --- a/InvenTree/plugins/integration/integration.py +++ b/InvenTree/plugins/integration/integration.py @@ -64,7 +64,7 @@ class UrlsMixin: retruns the urlpatterns for this plugin """ if self.has_urls: - return url(f'^{self.plugin_name()}/', include(self.urls), name=self.plugin_name()) + return url(f'^{self.plugin_name()}/', include((self.urls, self.plugin_name())), name=self.plugin_name()) return None @property diff --git a/InvenTree/plugins/integration/sample.py b/InvenTree/plugins/integration/sample.py index 9096482648..f184aa00cd 100644 --- a/InvenTree/plugins/integration/sample.py +++ b/InvenTree/plugins/integration/sample.py @@ -35,7 +35,7 @@ class SampleIntegrationPlugin(SettingsMixin, UrlsMixin, NavigationMixin, Integra } NAVIGATION= [ - {'name': 'SampleIntegration', 'link': 'SampleIntegrationPlugin:hi'}, + {'name': 'SampleIntegration', 'link': 'plugin:SampleIntegrationPlugin:hi'}, ]