Fix bug triggered by relative URL.