for slightly pages
<a href="/content/brand/us/en/test.html"></a>
will be rewritten as
<a href="/test.html"></a>
by using below rule in resource resolver factory config / mappings
"^/content/brand/us/en/(.+)\\.html</$1"
For SPA pages ,
resource resolver factory config / mappings transformation is not working ? is that expected ?
In SPA , we just pass CTA links as "/content/brand/us/en/test.html" or "/content/brand/us/en/test" in json to front end react
and it is rendering final links as <a href="/content/brand/us/en/test.html"></a> in SPA pages
Need help in handling this issue.
I want SPA links to show as <a href="/test.html"></a> in final render
Should i handle it using string manipulations while sending CTA in json
or
It should be handled in react code to truncate the prefix ?
Or is there anything similar to resource resolver factory config / mappings that will transform URLs in SPA