Imported out site into Matrix, however a lot of relative url's in both src= and href=
Meaning "../../image.jpg" etc.
Linking or using pages as embedded source causes grief, as does the old "intex.html" page.
Found that if I append via script %asset_url%/ to the start of any ../
it solves the problem with the old index pages.
But the non index pages i.e. those that end in .html (or .shtml) still have a problem as the attribute returns the path including file name.
Any ideas how I can strip the file name off?
i.e. if %asset_url%
is http://www.xyz.com/folder then return: http://www.xyz.com/folder
is http://www.xyz.com/folder/file.html then return: http://www.xyz.com/folder
Tried the idea of %asset_url^replace:/%asset_web_path%:/%
but no joy of course, can't put an attribute within another attribute formula so it seems.
Regards,
Brett.