From 9c2edb2eaa22f64b5f8c988357909ea36587dc02 Mon Sep 17 00:00:00 2001
From: Martyn Welch <martyn.welch@collabora.com>
Date: Wed, 7 Jul 2021 09:18:48 +0100
Subject: [PATCH] Fix broken GNOME URLs

GNOME has moved from git to GitLab. The default redirection is assuming
projects have a "master" branch, whereas some are using "main", resulting in a
404.

Signed-off-by: Martyn Welch <martyn.welch@collabora.com>
---
 content/concepts/application-entry-points.md    | 2 +-
 content/concepts/preferences-and-persistence.md | 2 +-
 content/guides/processes.md                     | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/content/concepts/application-entry-points.md b/content/concepts/application-entry-points.md
index eebd42d6b..d4fc372c0 100644
--- a/content/concepts/application-entry-points.md
+++ b/content/concepts/application-entry-points.md
@@ -789,7 +789,7 @@ Exec=/usr/Applications/org.apertis.Frampton/bin/frampton-control --shuffle-all
 [Desktop Entry placeholders]: http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s06.html#exec-variables
 [Desktop Menu categories]: http://standards.freedesktop.org/menu-spec/latest/apa.html
 [Frampton multiple entry points]: https://gitlab.apertis.org/appfw/frampton/tree/v0.6.1/scripts
-[GDesktopAppInfo]: https://git.gnome.org/browse/glib/tree/gio/gdesktopappinfo.c#n1997
+[GDesktopAppInfo]: https://gitlab.gnome.org/GNOME/glib/-/blob/main/gio/gdesktopappinfo.c#L2007
 [localestring]: https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#localized-keys
 [PulseAudio media roles]: http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/Developer/Clients/ApplicationProperties/
 [Reversed domain name]: https://en.wikipedia.org/wiki/Reverse_domain_name_notation
diff --git a/content/concepts/preferences-and-persistence.md b/content/concepts/preferences-and-persistence.md
index d7b637e22..2b72e3463 100644
--- a/content/concepts/preferences-and-persistence.md
+++ b/content/concepts/preferences-and-persistence.md
@@ -1845,7 +1845,7 @@ As discussed in the above sections, we recommend:
 
 [D-Bus-secret-service]: http://standards.freedesktop.org/secret-service/
 
-[GSettings-schema]: https://git.gnome.org/browse/glib/tree/gio/gschema.dtd
+[GSettings-schema]: https://gitlab.gnome.org/GNOME/glib/-/blob/main/gio/gschema.dtd
 
 [GVariant type]: https://developer.gnome.org/glib/stable/glib-GVariantType.html#id-1.6.18.6.9
 
diff --git a/content/guides/processes.md b/content/guides/processes.md
index 19c85c858..7aa92ae23 100644
--- a/content/guides/processes.md
+++ b/content/guides/processes.md
@@ -106,7 +106,7 @@ used by most Linux applications. It gives automatic support for `--help`
 output, and short and long option parsing.
 
 An example of using `GApplication` together with `GOptionContext` is
-[here](https://git.gnome.org/browse/glib/tree/gio/tests/gapplication-example-cmdline3.c).
+[here](https://gitlab.gnome.org/GNOME/glib/-/blob/main/gio/tests/gapplication-example-cmdline3.c).
 
 # External links
 
-- 
GitLab