View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 20392 | Bug reports | Usability/user experience | public | 2025-12-28 13:22 | 2026-07-29 16:30 |
| Reporter | HansemanMUC | Assigned To | DenisChenu | ||
| Priority | none | Severity | partial_block | ||
| Status | resolved | Resolution | fixed | ||
| Product Version | 6.12.x | ||||
| Summary | 20392: URL placeholders such as {SURVEYURL} are expanded to invalid URLs | ||||
| Description | In my LimeSurvey installation (6.16.2), when I create surveys, the URLs linking to the survey are wrong.
For example, if my limesurvey-site is limesurvey.example.com, the links look like this: https://limesurvey.example.comhttps://limesurvey.example.com/index.php/xxyyzz?lang=de-informal After removing the first part (https://limesurvey.example.com), the link works. However, when sending out Emails or giving away QR codes, this prevents users from taking the survey. Details for my installation:
config.php: | ||||
| Steps To Reproduce | Steps to reproduceCreate a survey, add participants, send invite email Expected resultcorrect URL in the email or in the QR code generated by UI: Actual resultactual URL: | ||||
| Tags | No tags attached. | ||||
| Attached Files | |||||
| Bug heat | 2 | ||||
| Complete LimeSurvey version number (& build) | LimeSurvey Community Edition Version 6.16.2 (martialblog/limesurvey:6-apache) | ||||
| I will donate to the project if issue is resolved | No | ||||
| Story point estimate | |||||
| Browser | Firefox and Chrome | ||||
| Database type & version | mysql 5.7 (docker.io/mysql:5.7) | ||||
| Server OS (if known) | Linux | ||||
| Webserver software & version (if known) | Apache (2.4.65-1~deb12u1) | ||||
| PHP Version | PHP 8.3.28 (cli) (built: Dec 8 2025 22:57:17) (NTS) | ||||
| related to | 20059 | assigned | gabrieljenik | createAbsoluteUrl don't use publicurl |
|
Why you use both ? Use only publicurl OR baseUrl Only one is needed. |
|
|
PS : using
is broken with YII : you must use
And can have
See : https://www.yiiframework.com/doc/api/1.1/CHttpRequest#baseUrl-detail
|
|
|
OK, we have the issue too with 'baseUrl' => '/limesurvey', I fix for tghis |
|
|
On this one : I review totally all URL management tests too. |
|
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=40078 |
|
|
LimeSurvey: master 3b6cf7df 2026-07-29 16:30 Committer: GitHub Details Diff |
Fixed issue 20392: Invalid URL placeholders when using hostInfo or baseUrl and publicurl (05159) |
Affected Issues 20392 |
|
| mod - application/core/Traits/LSApplicationTrait.php | Diff File | ||
| mod - phpunit.xml | Diff File | ||
| mod - tests/TestHelper.php | Diff File | ||
| mod - tests/unit/LSYiiApplicationTest.php | Diff File | ||
| mod - tests/unit/models/SurveyTest.php | Diff File | ||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2025-12-28 13:22 | HansemanMUC | New Issue | |
| 2025-12-28 13:22 | HansemanMUC | File Added: survey_archive_197329.lsa | |
| 2025-12-31 11:58 | DenisChenu | Note Added: 84053 | |
| 2025-12-31 11:58 | DenisChenu | Bug heat | 0 => 2 |
| 2026-01-05 13:37 | tibor.pacalat | Assigned To | => DenisChenu |
| 2026-01-05 13:37 | tibor.pacalat | Status | new => assigned |
| 2026-01-09 12:36 | DenisChenu | Relationship added | related to 20059 |
| 2026-07-22 10:02 | DenisChenu | Note Added: 85239 | |
| 2026-07-22 10:04 | DenisChenu | Note Edited: 85239 | |
| 2026-07-22 10:13 | DenisChenu | Note Added: 85241 | |
| 2026-07-22 11:20 | DenisChenu | Note Added: 85246 | |
| 2026-07-23 17:39 | DenisChenu | Status | assigned => ready for code review |
| 2026-07-23 17:39 | DenisChenu | Note Added: 85264 | |
| 2026-07-24 09:13 | DenisChenu | Assigned To | DenisChenu => gabrieljenik |
| 2026-07-28 18:45 | gabrieljenik | Assigned To | gabrieljenik => tibor.pacalat |
| 2026-07-28 18:45 | gabrieljenik | Status | ready for code review => ready for testing |
| 2026-07-29 16:30 | DenisChenu | Changeset attached | => LimeSurvey master 3b6cf7df |
| 2026-07-29 16:30 | DenisChenu | Note Added: 85281 | |
| 2026-07-29 16:30 | DenisChenu | Assigned To | tibor.pacalat => DenisChenu |
| 2026-07-29 16:30 | DenisChenu | Status | ready for testing => resolved |
| 2026-07-29 16:30 | DenisChenu | Resolution | open => fixed |