Update wiki links to the new short URL

Done with: find -type f -exec sed -Ee ':wiki.archlinux.org: s:(wiki.archlinux.org)/index.php/:\1/title/:g' -i {} \;

Fixes #16

[1] https://gitlab.archlinux.org/archlinux/infrastructure/-/merge_requests/335

Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
This commit is contained in:
Kristian Klausen 2021-05-09 23:51:06 +02:00 committed by Eli Schwartz
parent 8ec170b3e0
commit bab74dd307
No known key found for this signature in database
GPG key ID: CEB167EFB5722BD6
3 changed files with 7 additions and 7 deletions

View file

@ -22,7 +22,7 @@ you may customize [options] aur_location and [sso] openid_configuration in
You may then start `keycloak.service` through systemd. You may then start `keycloak.service` through systemd.
See also ArchWiki <https://wiki.archlinux.org/index.php/Keycloak>. See also ArchWiki <https://wiki.archlinux.org/title/Keycloak>.
Configuring a realm Configuring a realm
------------------- -------------------

View file

@ -74,9 +74,9 @@ if (isset($_COOKIE["AURSID"])) {
<?php <?php
echo __( echo __(
'Welcome to the AUR! Please read the %sAUR User Guidelines%s and %sAUR TU Guidelines%s for more information.', 'Welcome to the AUR! Please read the %sAUR User Guidelines%s and %sAUR TU Guidelines%s for more information.',
'<a href="https://wiki.archlinux.org/index.php/AUR_User_Guidelines">', '<a href="https://wiki.archlinux.org/title/AUR_User_Guidelines">',
'</a>', '</a>',
'<a href="https://wiki.archlinux.org/index.php/AUR_Trusted_User_Guidelines">', '<a href="https://wiki.archlinux.org/title/AUR_Trusted_User_Guidelines">',
'</a>' '</a>'
); );
?> ?>
@ -84,7 +84,7 @@ if (isset($_COOKIE["AURSID"])) {
echo __( echo __(
'Contributed PKGBUILDs %smust%s conform to the %sArch Packaging Standards%s otherwise they will be deleted!', 'Contributed PKGBUILDs %smust%s conform to the %sArch Packaging Standards%s otherwise they will be deleted!',
'<strong>', '</strong>', '<strong>', '</strong>',
'<a href="https://wiki.archlinux.org/index.php/Arch_Packaging_Standards">', '<a href="https://wiki.archlinux.org/title/Arch_Packaging_Standards">',
'</a>' '</a>'
); );
?> ?>
@ -95,7 +95,7 @@ if (isset($_COOKIE["AURSID"])) {
<?= __('DISCLAIMER') ?>: <?= __('DISCLAIMER') ?>:
<?= __('AUR packages are user produced content. Any use of the provided files is at your own risk.'); ?> <?= __('AUR packages are user produced content. Any use of the provided files is at your own risk.'); ?>
</p> </p>
<p class="readmore"><a href="https://wiki.archlinux.org/index.php/AUR"><?= __('Learn more...') ?></a></p> <p class="readmore"><a href="https://wiki.archlinux.org/title/AUR"><?= __('Learn more...') ?></a></p>
</div> </div>
<div id="news"> <div id="news">
<h3><a><?= __('Support') ?></a><span class="arrow"></span></h3> <h3><a><?= __('Support') ?></a><span class="arrow"></span></h3>
@ -131,7 +131,7 @@ if (isset($_COOKIE["AURSID"])) {
<?php <?php
echo __( echo __(
'Git over SSH is now used to submit packages to the AUR. See the %sSubmitting packages%s section of the Arch User Repository ArchWiki page for more details.', 'Git over SSH is now used to submit packages to the AUR. See the %sSubmitting packages%s section of the Arch User Repository ArchWiki page for more details.',
'<a href="https://wiki.archlinux.org/index.php/Arch_User_Repository#Submitting_packages">', '<a href="https://wiki.archlinux.org/title/Arch_User_Repository#Submitting_packages">',
'</a>' '</a>'
); );
?> ?>

View file

@ -7,7 +7,7 @@
<a href="<?= $log_uri ?>"><?= __('View Changes') ?></a> <a href="<?= $log_uri ?>"><?= __('View Changes') ?></a>
</li> </li>
<li><a href="<?= $snapshot_uri ?>"><?= __('Download snapshot') ?></a> <li><a href="<?= $snapshot_uri ?>"><?= __('Download snapshot') ?></a>
<li><a href="https://wiki.archlinux.org/index.php/Special:Search?search=<?= urlencode($row['Name']) ?>"><?= __('Search wiki') ?></a></li> <li><a href="https://wiki.archlinux.org/title/Special:Search?search=<?= urlencode($row['Name']) ?>"><?= __('Search wiki') ?></a></li>
<li><span class="flagged"><?= $row["OutOfDateTS"] !== NULL ? html_action_link($base_uri . 'flag-comment/', __('Flagged out-of-date (%s)', "$out_of_date_time")) : "" ?></span></li> <li><span class="flagged"><?= $row["OutOfDateTS"] !== NULL ? html_action_link($base_uri . 'flag-comment/', __('Flagged out-of-date (%s)', "$out_of_date_time")) : "" ?></span></li>
<?php if ($row["OutOfDateTS"] === NULL): ?> <?php if ($row["OutOfDateTS"] === NULL): ?>
<li><?= html_action_link($base_uri . 'flag/', __('Flag package out-of-date')) ?></li> <li><?= html_action_link($base_uri . 'flag/', __('Flag package out-of-date')) ?></li>