Radome value in page mapping config | Community
Skip to main content
aliaksandr_hvozdzeu
New Participant
July 3, 2023

Radome value in page mapping config

  • July 3, 2023
  • 3 replies
  • 1573 views

Hello,

 

A question. I'm creating a page mapping and I've run into a problem that I can't find a regular expression for the mapping.

Is there an expression that accepts any

 

.../{any value}/...

sling:internalRedirect     /content/sites/websites/$1/product/$2

sling:match.     mysite.com/(en_us|es_mx|de_de|ja_jp|fr_fr)/products/category/{any value}/(.*)


parameter and does not pass it into a property for the redirect?

I do not have a standard situation, but I don’t really want to create custom services for this case.

 

Thank you in advance.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Peter_Puzanovs
New Participant
July 3, 2023

Why do it on Publisher, would it not be better to do it in Webserver layer?

 

Regards,

Peter 

aliaksandr_hvozdzeu
New Participant
July 3, 2023

Yes, it is better, but in our case, it is not possible to do this. There are many reasons.

Tanika02
New Participant
July 3, 2023

Hello @aliaksandr_hvozdzeu - 

 

sling:internalRedirect /content/sites/websites/$1/product/$2 sling:match mysite.com/(en_us|es_mx|de_de|ja_jp|fr_fr)/products/category/(?:.)/(.)

New Participant
July 3, 2023

Hi @aliaksandr_hvozdzeu 

This expression should work for any match: (.*?)

 

aliaksandr_hvozdzeu
New Participant
July 3, 2023

Yes. RegEX working but didn't help me because I think (.*?) passed to $n variable and brock the path to the resource.