Fixing links relative to SCRIPT_NAME