CRM-3716 CIVICRM_UF_BASEURL not used consistently

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.1
    • Fix Version/s: Unscheduled
    • Component/s: Standalone CiviCRM
    • Labels:
      None

      Description

      Most links are not built using CIVICRM_UF_BASEURL – but they are not relative either. They are absolute links, apparently built based on some auto detected root URL. Examples include all URLs in the top section of the sidebar navigation.

      This causes CiviCRM not to work through HTTPS – the automagic links all are plain HTTP links. The same problem arises if you want to use some form of URL rewriting.

      The solution is to a) use CIVICRM_UF_BASEURL consistently, everywhere or b) use relative links where possible or c) at least detect the use of HTTPS, and built the URLs accordingly.

        Attachments

          Activity

          [CRM-3716] CIVICRM_UF_BASEURL not used consistently
          Daniel Kinzler added a comment -

          Ok, i just found that I can change "more" base urls on site, in the admin settings. that does work, though it's very confusing as to which setting is used when, and why one can be done on-site, while the other is done on a config file.

          Also, picking the "force SSL" option tells me that I "have to set up a secure server" before I can use it. What does that mean? I'm already accessing the page via HTTPS...

          Donald A. Lobo added a comment -

          1. not sure i understand the issue completely. would be great if u start a forum thread, point to this issue and describe in more detail

          2. relative url support is coming in 2.2

          3. the https stuff seems like a bug

          Mark Honman added a comment -

          Other than setting the base URL via Administer CiviCRM -> Global Settings -> Update Directory Path and URL, some parts of CiviCRM still pick it up from civicrm.settings.php.

          And to add to the fun, the originally configured URL appears in the database civicrm_menu table and is unaffected by changing URL in the above locations.

          However the second time that I visited the UpdateConfigBacked page, the menu was rebuilt. Sequence of actions was

          Set base URL via Administer CiviCRM -> Global Settings -> Update Directory Path and URL
          Edit civicrm.settings.php
          Point browser at new URL for UpdateConfigBacked

          Sorry that this is a bit vague... various things were tried before getting this far.

          Kurund Jalmi added a comment -

          Standalone version is no longer supported hence closing all open issues

            People

            • Assignee:
              Donald A. Lobo
              Reporter:
              Daniel Kinzler

              Dates

              • Created:
                Updated:
                Resolved: