Martin Moebius
2014-05-19 07:56:36 UTC
Hello,
I am trying to use a Dokuwiki with fckg behind an Apache reverse proxy and
found that fckg inserts one absolute link in the HTML-Pages. Example:
https://server.com:444/lib/plugins/fckg/scripts/script-cmpr.js
I tried to use mod_proxy_html to rewrite that, but ended up in a situation
where fck would no longer work correctly with Firefox.
So now I looked into the fckg code and found two places where the file is
linked:
"actions/meta.php"
$url = DOKU_URL . 'lib/plugins/fckg/scripts/script-cmpr.js';
"actions/edit.php"
$url = DOKU_URL . 'lib/plugins/fckg/scripts/script-cmpr.js';
I changed both lines, to use DOKU_BASE instead of DOKU_URL and my issue is
gone.
So my question is basicly does this link have to use DOKU_URL for any
reason or can you change it to DOKU_BASE?
Kind regards
Martin Möbius
I am trying to use a Dokuwiki with fckg behind an Apache reverse proxy and
found that fckg inserts one absolute link in the HTML-Pages. Example:
https://server.com:444/lib/plugins/fckg/scripts/script-cmpr.js
I tried to use mod_proxy_html to rewrite that, but ended up in a situation
where fck would no longer work correctly with Firefox.
So now I looked into the fckg code and found two places where the file is
linked:
"actions/meta.php"
$url = DOKU_URL . 'lib/plugins/fckg/scripts/script-cmpr.js';
"actions/edit.php"
$url = DOKU_URL . 'lib/plugins/fckg/scripts/script-cmpr.js';
I changed both lines, to use DOKU_BASE instead of DOKU_URL and my issue is
gone.
So my question is basicly does this link have to use DOKU_URL for any
reason or can you change it to DOKU_BASE?
Kind regards
Martin Möbius