broken link using an ssl proxy
- Status
- Closed
- Subject
- broken link using an ssl proxy
- Version
- 9.x
- Category
- Error
- Support request
- Resolution status
- Out of Date
- Submitted by
- instantsleep
- Lastmod by
- Ushindi Gedeon
- Rating
- Description
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?
- Solution
- Workaround
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:
Copy to clipboard$(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) ); }); });- Importance
- 6
- Easy to solve?
- 4
- Priority
- 24
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 4584
- Created
- Tuesday 02 July, 2013 17:26:10 UTC
by instantsleep - LastModif
- Saturday 04 July, 2026 21:39:09 UTC