Fixed Convert URLs to page titles fails on some URLs due to lack of 'Accept' header

Jon W

Well-known member
Not sure if this is just specific to this one website, but I've found an example of a site that returns a 404 error when XenForo tries to get its title, even though it is a valid page.

Example:
https://familysearch.org/ark:/61903/1:1:KQZT-1B8

Adding:
Code:
->setHeaders('Accept', 'text/html')
to the request in XenForo_BbCode_Formatter_BbCode_AutoLink seems to fix it for this site and may help with some other sites.
 
  • Like
Reactions: Rob
Top