Made absolute links dependent on request type.