Skip to content

Commit 2f7e640

Browse files
Update three links to point to main branch instead of master, removing the redirect (#2497)
On <https://wpt.fyi/results/> I've noticed when clicking on "[`view the search documentation`](https://github.com/web-platform-tests/wpt.fyi/blob/master/api/query/README.md)" you'll be taken to the documentation, but a banner from GitHub distracts you, telling you've been redirected to the default branch. This PR removes the redirect by directly linking to the main branch (which is the default). I've also changed two other occurrences. The redirect was acknowledged in #2280 (comment), but I thought it would be nicer without it.
1 parent b58ea15 commit 2f7e640

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

api/receiver/client/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func (c client) CreateRun(
5050
resultURLs []string,
5151
screenshotURLs []string,
5252
labels []string) error {
53-
// https://github.com/web-platform-tests/wpt.fyi/blob/master/api/README.md#url-payload
53+
// https://github.com/web-platform-tests/wpt.fyi/blob/main/api/README.md#url-payload
5454
payload := make(url.Values)
5555
// Not to be confused with `revision` in the wpt.fyi TestRun model, this
5656
// parameter is the full revision hash.

webapp/components/test-search.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ class TestSearch extends WPTFlags(PolymerElement) {
360360
value="{{ queryInput::input }}" placeholder="[[placeholder]]"
361361
onchange="[[onChange]]" onkeyup="[[onKeyUp]]" onkeydown="[[onKeyDown]]" onfocus="[[onFocus]]" onblur="[[onBlur]]">
362362
<span class="help">
363-
For information on the search syntax, <a href="https://github.com/web-platform-tests/wpt.fyi/blob/master/api/query/README.md">view the search documentation</a>
363+
For information on the search syntax, <a href="https://github.com/web-platform-tests/wpt.fyi/blob/main/api/query/README.md">view the search documentation</a>
364364
</span>
365365
366366
<!-- TODO(markdittmer): Static id will break multiple search components. -->

webapp/components/wpt-flags.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ class WPTEnvironmentFlagsEditor extends FlagsEditorClass(/*environmentFlags*/ tr
312312
<paper-item sub-item>
313313
<paper-checkbox checked="{{onlyChangesAsRegressions}}">
314314
Only treat C (changed) differences as possible regressions.
315-
(<a href="https://github.com/web-platform-tests/wpt.fyi/blob/master/api/README.md#apidiff">See docs for definition</a>)
315+
(<a href="https://github.com/web-platform-tests/wpt.fyi/blob/main/api/README.md#apidiff">See docs for definition</a>)
316316
</paper-checkbox>
317317
</paper-item>
318318
<paper-item>

0 commit comments

Comments
 (0)