mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Use URL rewriting for user info page
Navigation to the "AccountInfo" page should only require a user to know the username of the account they are looking for. Update all AUR links that use the user info page to reflect the new URL. Before: AUR_URL/account/?Action=AccountInfo&U=userfoo After: AUR_URL/account/userfoo Signed-off-by: canyonknight <canyonknight@gmail.com> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
440a66ced0
commit
98b6ba9479
6 changed files with 27 additions and 4 deletions
|
@ -47,6 +47,12 @@ if (isset($tokens[1]) && '/' . $tokens[1] == get_pkg_route()) {
|
|||
}
|
||||
}
|
||||
|
||||
include get_route('/' . $tokens[1]);
|
||||
} elseif (isset($tokens[1]) && '/' . $tokens[1] == get_user_route()) {
|
||||
if (isset($tokens[2])) {
|
||||
$_REQUEST['U'] = $tokens[2];
|
||||
$_REQUEST['Action'] = "AccountInfo";
|
||||
}
|
||||
include get_route('/' . $tokens[1]);
|
||||
} elseif (get_route($path) !== NULL) {
|
||||
include get_route($path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue