before.php: fix links