I'm working on sightly based component development. where i want to set the data attributes with short URL
I tried using JS which works only anchor tags but not for data attributes.
var resourceType = resource.getResourceType();
resolved = resolved + ".html";
Any alternate for data attributes?
Solved! Go to Solution.
I tried data-attributes in anchor tag as below
in href : i could short url as /home.html
where as in data-values : /content/.../en/home.html
I need to update anything in configuration ??