Claiver
Member
So I'm loading some parts of the XenForo header in my CakePHP application. The HTML is loaded fine, and I'm also including the xenforo.js for the base JS logic to ensure the visitor bar works (with messages and alerts).
Currently when it generates the HTML for the loaded templates, all of the URLs are relative. Since my board is located at http://mysite.com/community/, and my main page at http://mysite.com/, I need to somehow make the renderer/parser append "/community/" to the URLs.
In addition to that, the AJAX urls in the javascript are relative as well. So when it tries to load the alerts upon hovering over it, it tries to load it from http://mysite.com/account/alerts-popup/?&_xfRequestUri=%2F&_xfNoRedirect=1&_xfResponseType=json instead of http://mysite.com/community/account/alerts-popup/etc..
Any idea how I would best go about solving this matter? Cheers!
Currently when it generates the HTML for the loaded templates, all of the URLs are relative. Since my board is located at http://mysite.com/community/, and my main page at http://mysite.com/, I need to somehow make the renderer/parser append "/community/" to the URLs.
In addition to that, the AJAX urls in the javascript are relative as well. So when it tries to load the alerts upon hovering over it, it tries to load it from http://mysite.com/account/alerts-popup/?&_xfRequestUri=%2F&_xfNoRedirect=1&_xfResponseType=json instead of http://mysite.com/community/account/alerts-popup/etc..
Any idea how I would best go about solving this matter? Cheers!