When we use the lti_tool_provider, we have a strange error with custom_destination. It doesn't seem to work. Further debugging showed that after this snippet:

drupal_alter('lti_tool_provider_launch', $launch_info, $account);
  // Calculate the final destination.
  if (!empty($launch_info['custom_destination'])) {
    $launch_info['destination'] .= '/' . $launch_info['custom_destination'];
  }

the destination parameter contained both node/ and the custom path (separated by a slash).

Removing the dot in the assignment, fixed this, but this will probably break other things. Could this be a fault in the lti_tool_provider_og module that doesn't unset custom_destination when it should maybe (with hook lti_tool_provider_launch)?

CommentFileSizeAuthor
#2 PILOT-654_custom_absolute_destination.diff672 bytesnve

Comments

nve’s picture

Adding the destination to the class path is designed behaviour. The preferred solution from the project leader (jzornig) is using a custom launch variable. So using custom_absolute_destination instead of using custom_destination.

nve’s picture

StatusFileSize
new672 bytes
kenianbei’s picture

Status: Active » Closed (outdated)

Closing as 7.x is no longer supported.