Better canonical url generation