Skip to content

Commit 688db35

Browse files
santoshyadavdevdgp1130
authored andcommitted
fix(@angular/cli): change the url for doc search
Fixes angular#16840
1 parent 3ce5bbb commit 688db35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/angular/cli/commands/doc-impl.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ export class DocCommand extends Command<DocCommandSchema> {
4141
/* tslint:disable-next-line:no-implicit-dependencies */
4242
const currentNgVersion = require('@angular/core').VERSION.major;
4343
domain = `v${currentNgVersion}.angular.io`;
44-
} catch (e) {}
44+
} catch (e) { }
4545
}
4646

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

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

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

0 commit comments

Comments
 (0)