List:Eventum Development« Previous MessageNext Message »
From:Harri Porten Date:December 6 2005 6:11pm
Subject:[Patch] Relative page refresh
View as plain text  

I was using Eventum through an SSH tunnel when I got an error message from
my browser when it wanted to automatically refresh the page. Problem was
that the Refresh header used an absolute http:// URL while I was accessing
the server through a different host name.

The attached patch for templates/en/header.tpl.html makes the template use
a relative URL instead.


Index: header.tpl.html
RCS file: /home/cvs/root/eventum/templates/en/header.tpl.html,v
retrieving revision
diff -u -r1.1.1.1 header.tpl.html
--- header.tpl.html	17 Nov 2005 23:55:46 -0000
+++ header.tpl.html	6 Dec 2005 17:45:55 -0000
@@ -11,7 +11,7 @@
 <script language="JavaScript" src="{$rel_url}js/global.js"></script>
 <script language="JavaScript" src="{$rel_url}js/validation.js"></script>
 {if $refresh_rate}
-<meta http-equiv="Refresh" content="{$refresh_rate};URL={$app_base_url}{$refresh_page}">
+<meta http-equiv="Refresh" content="{$refresh_rate};URL={$rel_url}{$refresh_page}">
[Patch] Relative page refreshHarri Porten6 Dec