From 24db57bfb6c1b480281ad35df74dd578f5537050 Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Fri, 8 Dec 2017 18:47:00 +0000 Subject: [PATCH] Fix api prefix. --- src/ScalarAuthClient.js | 2 +- src/components/views/elements/AppTile.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ScalarAuthClient.js b/src/ScalarAuthClient.js index a796c92ab3..3e775a94ab 100644 --- a/src/ScalarAuthClient.js +++ b/src/ScalarAuthClient.js @@ -79,7 +79,7 @@ class ScalarAuthClient { getScalarPageTitle(url) { const defer = Promise.defer(); - let scalarPageLookupUrl = SdkConfig.get().integrations_rest_url + '/api/widgets/title_lookup'; + let scalarPageLookupUrl = SdkConfig.get().integrations_rest_url + '/widgets/title_lookup'; scalarPageLookupUrl = this.getStarterLink(scalarPageLookupUrl); scalarPageLookupUrl += '&curl=' + encodeURIComponent(url); request({ diff --git a/src/components/views/elements/AppTile.js b/src/components/views/elements/AppTile.js index 9c327d55fe..3ed67eb69d 100644 --- a/src/components/views/elements/AppTile.js +++ b/src/components/views/elements/AppTile.js @@ -198,7 +198,7 @@ export default React.createClass({ }); // Fetch page title from remote content if not already set - if (!this.state.widgetPageTitle) { + if (!this.state.widgetPageTitle && params.url) { this._fetchWidgetTitle(params.url); } }, (err) => {