Skip to content

Commit

Permalink
fix(content-entry): add "http://" to landing page URL if missing from…
Browse files Browse the repository at this point in the history
… URL prefix
  • Loading branch information
amirch1 committed Oct 4, 2017
1 parent 8f8edc2 commit b5ebd97
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ export class EntryDetailsHandler extends EntryFormWidget
let landingPage = this.appAuthentication.appUser.partnerInfo.landingPage;
if (landingPage) {
landingPage = landingPage.replace("{entryId}", entry.id);
if (landingPage.indexOf("http") !== 0){
landingPage = "http://" + landingPage;
}
}
this._landingPage = landingPage;

Expand Down

0 comments on commit b5ebd97

Please sign in to comment.