commit | 80b76cc44e83e62a1faa73fc1407ecfa76ee5487 | [log] [tgz] |
---|---|---|
author | Erik <erik@haleytek.corp-partner.google.com> | Tue Feb 14 08:25:07 2023 +0100 |
committer | Ben Rohlfs <brohlfs@google.com> | Wed Feb 15 09:30:27 2023 +0000 |
tree | 1fa8a8ac56969a3ad59d591c44712491cbf7cd7e | |
parent | 14b30a6608865c00aebdf9f4bb9182bec247fc3a [diff] |
Fix 404 fallback link to docsBaseUrl The current url points to '/documentation', which gives 404. Changing it to '/Documentation' and the links work. Release-Notes: skip Change-Id: I0a4a7e1b6bc3136aa10838f1e4adc1d749799b30
diff --git a/polygerrit-ui/app/elements/core/gr-search-bar/gr-search-bar.ts b/polygerrit-ui/app/elements/core/gr-search-bar/gr-search-bar.ts index fbc87ed..314e126 100644 --- a/polygerrit-ui/app/elements/core/gr-search-bar/gr-search-bar.ts +++ b/polygerrit-ui/app/elements/core/gr-search-bar/gr-search-bar.ts
@@ -278,7 +278,7 @@ // fallback to gerrit's official doc let baseUrl = this.docsBaseUrl || - 'https://gerrit-review.googlesource.com/documentation/'; + 'https://gerrit-review.googlesource.com/Documentation/'; if (baseUrl.endsWith('/')) { baseUrl = baseUrl.substring(0, baseUrl.length - 1); }
diff --git a/polygerrit-ui/app/elements/core/gr-search-bar/gr-search-bar_test.ts b/polygerrit-ui/app/elements/core/gr-search-bar/gr-search-bar_test.ts index 43b1f86..0694453 100644 --- a/polygerrit-ui/app/elements/core/gr-search-bar/gr-search-bar_test.ts +++ b/polygerrit-ui/app/elements/core/gr-search-bar/gr-search-bar_test.ts
@@ -319,7 +319,7 @@ await element.updateComplete; assert.equal( element.computeHelpDocLink(), - 'https://gerrit-review.googlesource.com/documentation/' + + 'https://gerrit-review.googlesource.com/Documentation/' + 'user-search.html' ); });