Skip to content
This repository has been archived by the owner on Oct 20, 2021. It is now read-only.

Commit

Permalink
fix(portal): Use the URL from swagger if none specified in the Try-it…
Browse files Browse the repository at this point in the history
… configuration

Closes gravitee-io/issues#221
  • Loading branch information
brasseld committed Oct 6, 2016
1 parent 86cce86 commit 83c9404
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class PageSwaggerConfigurationService {
let deferred = this.$q.defer();
let url = new URL(swaggerUrl);
let swaggerConfig = this.DocumentationService.getPageConfigurationFromCache(url.pathname);
if (!_.isNil(swaggerConfig) && swaggerConfig.tryIt) {
if (!_.isNil(swaggerConfig) && swaggerConfig.tryIt && swaggerConfig.tryItURL) {
try {
let apiUrl = new URL(swaggerConfig.tryItURL);
swaggerSpec.host = apiUrl.host;
Expand Down

0 comments on commit 83c9404

Please sign in to comment.