$rooturl

More
4 years 6 months ago #88031 by DenisChenu
DenisChenu replied the topic: $rooturl
Got it !!

In config.php :
'components' => array(
        'request'=>array(
            'hostInfo'=>'http://surveys.northerndeanery.nhs.uk',
        ),
hostInfo is used for createAbsoluteUrl

For surveylisting, we just use createUrl, this make url like this : /index.php/.... and it's OK.

But for admin page, we force the absolute url, maybe it's not a big idea.

Only use absolute url for "survey url" in survey description and in survey mail.

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: quaint

Please Log in to join the conversation.

More
4 years 6 months ago #88032 by DenisChenu
DenisChenu replied the topic: Aw: $rooturl

quaint wrote: Will submit another bug report.

Plesa, give the number , or best the complete bug report link (with number).

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
4 years 6 months ago #88034 by quaint
quaint replied the topic: Aw: $rooturl
Success!

That seems to do the job!

Thanks very much. I think now it should just be a case of updating the documentation to say "hostinfo" rather than "baseUrl".

I'd actually submitted that bug report mere seconds from noticing your reply here:

http://bugs.limesurvey.org/view.php?id=6844

Please Log in to join the conversation.

More
4 years 6 months ago #88035 by DenisChenu
DenisChenu replied the topic: Aw: $rooturl

quaint wrote: Thanks very much. I think now it should just be a case of updating the documentation to say "hostinfo" rather than "baseUrl".

Please,

Do it, docs is a wiki :).

And for bug report, think this solution is not so easy. We have to use a $config for rooturl like in 1.92.

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
2 years 11 months ago #110407 by Gordon55M
Gordon55M replied the topic: $rooturl
This worked for me, thanks so much!

Please Log in to join the conversation.

More
2 years 11 months ago - 2 years 11 months ago #110417 by DenisChenu
DenisChenu replied the topic: $rooturl

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Last Edit: 2 years 11 months ago by DenisChenu.

Please Log in to join the conversation.

More
1 month 2 weeks ago - 1 month 2 weeks ago #152465 by e_lannaud
e_lannaud replied the topic: $rooturl
It's not work.. each time i save the configuration, it's redirected to http:\/\/secure.domain.org/survey-2017/
https://secure.domain.org/survey-2017/
          |
------    |    ------       ------------------------------------
Client|-https->| LB |-http->|    VH-internal:1234/survey-2017   |
------         ------       | Limesurvey version: 2.57.1+161205 |
                            ------------------------------------

in application/extensions/LimeScript/LimeScript.php is test to change:
            //$data['baseUrl']                    = Yii::app()->getBaseUrl(true);
            $data['baseUrl']                    = Yii::app()->getConfig("publicurl");
It modifies as well the baseUrl":"https:\/\/secure.domain.org\/survey-2017":
<script type="text/javascript">
/*<![CDATA[*/
LS.data = {"baseUrl":"https:\/\/secure.domain.org\/survey-2017","showScriptName":true,"urlFormat":"path","adminImageUrl":"\/survey-2017\/styles\/Sea_Green\/images\/","csrfToken":"ef39d73f0b8b4xxxxx75ef52d1e6dcax5d","language":"en","replacementFields":{"path":"\/survey-2017\/index.php\/admin\/limereplacementfields\/sa\/index"}};
$.ajaxSetup({data: {YII_CSRF_TOKEN: LS.data.csrfToken}});
/*]]>*/
</script>

I "solve" the problem to create a VH: http:\/\/secure.domain.org with rewrite URI to https:\/\/secure.domain.org...

Is it possible the create this HTTPS/HTTP configuation ?

Thank you.
Eric
Last Edit: 1 month 2 weeks ago by e_lannaud.

Please Log in to join the conversation.

More
1 month 2 weeks ago #152470 by holch
holch replied the topic: $rooturl
I have seen a similar problem before where \/ were inserted. I can't recall what the issue was, but it should be fixed in the latest version.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds
The following user(s) said Thank You: e_lannaud

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now