core icon indicating copy to clipboard operation
core copied to clipboard

VanityURL redirect applying URL encoding instead of just redirecting.

Open nathan-hildebrandt opened this issue 5 months ago • 1 comments

Parent Issue

No response

Problem Statement

When using 301 or 302 redirects in VanityURLs URL Encoding is being applied.

For example, when there is a # within the URL, it is changing it to %23 which breaks the redirect.

Steps to Reproduce

Create a VanityURL that redirects to a URL with a # within it. In my testing I used the sitemap.xml vanity url on the demo and just set the redirect to a website that contains a # within the URL. and this reproduced the issue when trying to go to demo.dotcms.com/sitemap.xml

Acceptance Criteria

Prevent URL Encoding from being applied to redirects

dotCMS Version

23.10.24 LTS 24.09.20

Proposed Objective

Core Features

Proposed Priority

Priority 2 - Important

External Links... Slack Conversations, Support Tickets, Figma Designs, etc.

https://dotcms.freshdesk.com/a/tickets/27773

Assumptions & Initiation Needs

No response

Quality Assurance Notes & Workarounds

No response

Sub-Tasks & Estimates

No response

nathan-hildebrandt avatar Sep 24 '24 21:09 nathan-hildebrandt