We have to move our tiki to a new provider because of the PHP memory limit. No problem, but we will only have an SSL proxy, but no own SSL domain.
Now I am testing: especially admin pages do not work. They use absolute links sending me not to https://ssl-proxy.com/mydomain.tld/adminpage.php, but to https://ssl-proxy.com/adminpage.php. Obviously this does not work.
As a first workaround I did two changes:
- in /lib/smarty_tiki/block.selflink.php I changed in line 44 $default_type from 'absolute_path' to 'relative'.
- in lib/smarty_tiki/block.title.php I changed in line 40
'_type' from 'absolute_path' to 'relative', too.
But now I had another broken link when removing an item from a menu. As it seems the problem cannot be solved by just changing one or two lines.
Is there a feature I do not know to solve this problem or is it a bug?
I have found a better workaround using javascript and jquery.
It corrects the broken links by searching for absolute links. I insert the code via 'header_custum_js'. It looks like this:
$(document).ready(function() { $('a[href^="/"]').each(function() { $(this).attr('href', $(this).attr('href').substring(1) ); }); $('form[action^="/"]').each(function() { $(this).attr('action', $(this).attr('action').substring(1) ); }); $('input[data-url^="/"]').each(function() { $(this).attr('data-url', $(this).attr('data-url').substring(1) ); }); });
To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.
To help developers solve the bug, we kindly request that you demonstrate your bug on a show.tikiwiki.org instance. To start, simply select a version and click on "Create show.tikiwiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show.tikiwiki.org.
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |