We have a client on Silverstripe 3.6 who’s website has multiple broken links in the following format: [sitetree_link,id=][sitetree_link,id=][sitetree_link,id=][sitetree_link,id=][sitetree_link,id=][sitetree_link,id=][sitetree_link,id=][sitetree_link,id=][sitetree_link,id=][sitetree_link,id=][sitetree_link,id=][sitetree_link,id=][sitetree_link,id=][sitetree_link,id=][sitetree_link,id=][sitetree_link,id=][sitetree_link,id=][sitetree_link,id=]
Is this a common problem, does anyone know what causes it, and is there anyway to easily clean up these links across the whole CMS/ website?
If the broken link report works you could do that then loop over the result set with some regex like @wmk suggested. Save changes and do a publish if the page was published before.
If the broken link report doesn’t give you results, (this is probably not a good idea but if it was me) I would consider exporting the 3 SiteTree tables as SQL, then clean up those files with some regex find and replace and re-import. You’d want to be very careful, so like I said… probably not a good idea. I’ve done this before when a whole bunch of links had to be updated and re-writing history wasn’t an issue.