Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rule regex backreferences not working #30078

Open
yolabingo opened this issue Sep 19, 2024 · 0 comments
Open

Rule regex backreferences not working #30078

yolabingo opened this issue Sep 19, 2024 · 0 comments

Comments

@yolabingo
Copy link
Contributor

yolabingo commented Sep 19, 2024

Problem Statement

Rules using regex are matched but the regex-matched string is not being substituted in the Rule action.

Steps to Reproduce

Set Rules using regex with Rule Actions that reference the matched regex string

Screenshot 2024-09-19 at 11 35 28 AM

Current Behavior

curl -s --head https://demo.dotcms.com/blog/ | grep -i regex
regex-current-url: $1
regex-host: $1

Expected Behavior

curl -s --head https://demo.dotcms.com/blog/ | grep -i regex
regex-current-url: https://demo.dotcms.com/blog/ # or whatever it matches, not sure exactly
regex-host: demo.dotcms.com

Acceptance Criteria

Rule regex backreferences working as expected

dotCMS Version

all

Proposed Objective

Core Features

Proposed Priority

Priority 2 - Important

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: New
Development

No branches or pull requests

1 participant