I installed phpMyFAQ 2.8.8, and noticed that 404s are generated when visitors are on the any of FAQ article pages as the path to some files in artikel.tpl template is wrong. Here is the part of the code in question:
Code: Select all
<style scoped>
@import "assets/js/syntaxhighlighter/styles/shCore.css";
@import "assets/js/syntaxhighlighter/styles/shThemeDefault.css";
</style>
<script src="assets/js/syntaxhighlighter/scripts/shCore.js"></script>
<script src="assets/js/syntaxhighlighter/scripts/shAutoloader.js"></script>
<script>
SyntaxHighlighter.autoloader(
'js jscript javascript assets/js/syntaxhighlighter/scripts/shBrushJScript.js',
'applescript assets/js/syntaxhighlighter/scripts/shBrushAppleScript.js',
'xml xhtml xslt html assets/js/syntaxhighlighter/scripts/shBrushXml.js',
'bash shell assets/js/syntaxhighlighter/scripts/shBrushBash.js',
'php assets/js/syntaxhighlighter/scripts/shBrushPhp.js',
'sql assets/js/syntaxhighlighter/scripts/shBrushSql.js'
);
SyntaxHighlighter.all();
</script>
mysite.com/faqpath/content/1/10/en/some-article.html?highlight=difference
and the path to any of the CSS or JS files from the code above looks like this:
mysite.com/faqpath/content/1/10/en/assets/js/syntaxhighlighter/styles/shCore.css
instead of
mysite.com/faqpath/assets/js/syntaxhighlighter/styles/shCore.css
Also, it seems these requests are triggered by some user agents only, mostly those that are Apple based, and I also notice the ?highlight=difference at the end of URL (some, not all of them in 404s).
For my curiosity, what is the purpose of these CSS and JS files? What triggers the highlighting option?
Thanks
P.S.
I also have a problem with not being able to see articles when logged on, but found that this is in the works with the next release, so thank you for that.