Hi. Great module! Working really well for me.

I am having an issue trying to edit a partially completed survey.

If I view the response node (node/#), it has a heading saying "Complete the answer", and under that is a link titled "Respond to the survey". When I hover over the "Respond to the survey" item, the address it wants to take me to is "node/#/edit". For any other link in my site, hovering over the link shows an address like "example.com/foo". When I click on the "Respond to the survey" link, I get a browser error saying it can't find the page. The browser is looking for an absolute address of node/#/edit (rather than example.com/node/#/edit) which obviously doesn't exist.

Any idea why the address attached to this link is not including the site name? (and how to fix this)? I do have Domain Access installed. Not sure if that is messing up the url generation for this link.

Thanks

CommentFileSizeAuthor
#3 Fix_answer_complete_link-2167543-3.patch1.14 KBthedut

Comments

hanksterr7’s picture

Found the problem. Someone care to make this into a patch? (beyond my expertise).

In ls_answ\ls_answ.module, lines 918 and 926 there are two calls to url() function. These calls don't include array('absolute' => TRUE) as a second parameter. By adding this parameter to these two calls, my issue went away.

hvalentim’s picture

Seems this solution would apply as well: https://drupal.org/comment/8293737#comment-8293737

thedut’s picture

Title: Respond to the survey link does not include the site address » The "Respond to the survey" link is broken
Assigned: Unassigned » thedut
Status: Active » Patch (to be ported)
Parent issue: » #2124047: A LimeSurvey site page has been successfully reached, but it does not match the same LimeSurvey database.
StatusFileSize
new1.14 KB

Yes the linked patch from #2 fixes this issue.
I attach it on the current issue.
I will include it into the next release.

hanksterr7’s picture

Thank you!

thedut’s picture

Status: Patch (to be ported) » Closed (fixed)

Fixed into the LimeSurvey Sync 7.x-1.6 release and 6.x-1.6 release.