Vanity URL Forward to URL Map Pattern results in 404
Describe the bug
When creating a Vanity URL that is supposed to forward to a URL Mapped Content Type, results in a 404. No exceptions are being thrown. This problem is also reproducible on the demo site.
Note: This does work in dotCMS 4.
Steps to reproduce the behavior:
- Create a Vanity Url on the demo site with the following information:
- Site: All Sites
- Url: /testurl/([a-zA-Z0-9-_]+)
- Action: 200 - Forward
- Forward To: /products/$1
- Save and Publish
- In private/incognito browser, navigate to: https://demo.dotcms.com/testurl/consumer-discretionary or a matching urlTitle of another contentlet from "Products".
Expected behavior
Browser is forwarded (transparently) to /products/consumer-discretionary with /testurl/consumer-discretionary in the address bar.
Actual behavior
dotCMS 5 Demo Site: Browser gets a 404 page.
dotCMS 4 Demo Site: Browser is forwarded as intended.
Screenshots
dotCMS 5 demo site:

dotCMS 4 demo site:

Desktop (please complete the following information):
- OS: Windows 10 x64
- Browser: Chrome
- Version: 74.0.3729.169
PR: https://github.com/dotCMS/core/pull/17769
Hi @wezell,
We are having a similar issue for a large customer. This is impacting the platform and the end-users.
Could we please get a hotfix for this issue?
Thank you
@yasindilekci - I would open a support ticket requesting a hotfix for the issue.
PR: https://github.com/dotCMS/core/pull/17859
@freddyucv @dsilvam this fix is still hitting elasticsearch every request:
ab -c 10 -n 10000 http://localhost:8080/about-us/index

@wezell Putting this comment on the proper ticket, following @freddyucv suggestion. New comment under https://github.com/dotCMS/core/issues/17612#issuecomment-577735179. Also putting the Needs Work to that issue instead.
These changes are breaking the edit mode, we need some work here
PR: https://github.com/dotCMS/core/pull/17926
PR: https://github.com/dotCMS/core/pull/17933
Note for QA: Algo go to the /services/first-time-investors page, and check that the left side menu is right (it should look exactly as it look in demo site )
Passed Internal QA: Results: OK. The original issue has been solved and the one that broke Edit Mode too. This change had also broken the Nav Tool. Now, it works as expected
Merged into 5.2.5 @bryanboza
Fixed, tested on release-5.2.5 // Postgres // FF