Skip to content

How to use the Url Cleaner module to replace characters? #247

Answered by TrianguloY
Murilogs1910 asked this question in Q&A
Discussion options

You must be logged in to vote

I think I didn't explain it correctly.

What I was trying to say is that the Url Cleaner module is designed to both remove parameters and extract redirections from them.

In your patterns file you had some in the format (can't remember exactly) something like "google.com/?redirection=(.*)" -> "$1".
The issue is that the url parameter is encoded, so the pattern output is something like "google.com%2F123", so you had a bunch of "%2F" -> "/" automatic replacements.

If you use instead the cleaner module, you should be able to add an entry for that under 'redirections', something like (not tested):
"custom": { "decode": { "urlPattern": "google.com", "redirections": [ "google.com/?redirection=(.*…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Murilogs1910
Comment options

@TrianguloY
Comment options

Answer selected by Murilogs1910
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants