Skip to content

Commit

Permalink
fix(@angular/cli): change the url for doc search
Browse files Browse the repository at this point in the history
Fixes #16840
  • Loading branch information
santoshyadavdev authored and dgp1130 committed Feb 6, 2020
1 parent 3ce5bbb commit 688db35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/angular/cli/commands/doc-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ export class DocCommand extends Command<DocCommandSchema> {
/* tslint:disable-next-line:no-implicit-dependencies */
const currentNgVersion = require('@angular/core').VERSION.major;
domain = `v${currentNgVersion}.angular.io`;
} catch (e) {}
} catch (e) { }
}

let searchUrl = `https://${domain}/api?query=${options.keyword}`;

if (options.search) {
searchUrl = `https://www.google.com/search?q=site%3A${domain}+${options.keyword}`;
searchUrl = `https://${domain}/?search=${options.keyword}`;
}

// We should wrap `open` in a new Promise because `open` is already resolved
Expand Down

0 comments on commit 688db35

Please sign in to comment.