Menu

#114 OPT_1.2: "Home" button points to invalid URL

OPT_1.X_(Max)
closed-fixed
None
5
2003-10-25
2003-10-24
No

Minor GUI thing. The "home" icon points to an incorrect
URL, when OPT is installed in a subdirectory of the
webserver (e.g. www.somesite.com/OPT/) and when used
with https. This drilles down to the script
<opt_install_dir>/include/gui.php where:

1. The CRM_URL needs a slash added
2. Need to check for force_protocol variable.

I include the diff and if Guy thinks it's oke, it could
be added to a next release.

diff gui.php.org gui.php
295a296,299
> $PROTOCOL=get_setting("force_protocol");
> if (!$PROTOCOL) {
> $PROTOCOL="http";
> }
302c306
< document.write("<a href='http://<? echo
$SERVER_NAME.$CRM_URL;
?>?URL="+escape(location.href)+"' target='_blank'>");
---
> document.write("<a href='<? echo $PROTOCOL;
?>://<? echo $SERVER_NAME.$CRM_URL;
?>/?URL="+escape(location.href)+"' target='_blank'>");

HTH, Martin

Discussion

  • Anonymous

    Anonymous - 2003-10-25
    • milestone: --> OPT_1.X_(Max)
    • assigned_to: nobody --> guy_davis
    • status: open --> closed-fixed
     
  • Anonymous

    Anonymous - 2003-10-25

    Logged In: YES
    user_id=22084

    Thanks for the patch. I also added this setting to the
    admin help documentation. Your changes will be in the next
    release.

     

Log in to post a comment.

MongoDB Logo MongoDB