diff options
author | Frank Borden <frankborden@google.com> | 2023-11-20 13:55:52 +0100 |
---|---|---|
committer | Paladox none <thomasmulhall410@yahoo.com> | 2023-11-24 23:31:05 +0000 |
commit | d51f01624a6242b4fb02a89dbcff2224d285d7af (patch) | |
tree | 9cb69c956765cf3dc4fc9ebef89d44633c846cf1 | |
parent | becab0ddb4a076430a478b2529688b5a660a23bb (diff) |
Assume relative links without / prefix are absolute
Currently they are interpreted as relative links, but users often
assume the link is non-relative. Eg. [google](google.com) links to
https://gerrit-review.googlesource.com/google.com rather than
https://google.com.
We also have many cases where commentLink configs are depending on
relative links such as "Change 123" --> "/c/123".
Therefore this change leaves relative links alone if they start with /,
and otherwise automatically prefixes them with "https://"
Release-Notes: Relative comment links without "/" prefix are converted to absolute links.
Change-Id: I976c379fa55f4f0f9f6ffc10a3e8e7589df07e06
(cherry picked from commit 70d2b8151669558f7f41b5d9db67ae300a3efcd9)
0 files changed, 0 insertions, 0 deletions