Opened 15 years ago

Closed 14 years ago

#1227 closed defect (fixed)

Return to home page task button fails in MGOS 2.1

Reported by: iaguilera Owned by:
Priority: high Milestone:
Component: AJAX Viewer Version: 2.1.0
Severity: trivial Keywords:
Cc: External ID:

Description

Return to home page task button fails in MGOS2.1. In my case de URL for home task is: ../PROJECTNAME/start.php

The button works again if I change line 136 of mainframe.php

$taskPaneUrl = urlencode($taskPane->GetInitialTaskUrl());

to

$taskPaneUrl = $taskPane->GetInitialTaskUrl();

Change History (4)

comment:1 by jng, 15 years ago

The reason urlencode() is there is because if your task pane url has querystring parameters, the url would've been scrambled up as it got passed down to the task pane.

Could you possibly elaborate more on the reason for failure?

comment:2 by iaguilera, 15 years ago

I see that version 2.0.2 of MGOS worked fine and didn't include this urlencode.

The problem I think is that urlencode is encoding the full url, and must encode only the parameters. Because if my taskpane url is "../PROJECTNAME/start.php" urlencode is going to change the slashes '/' to %2F!!! and my url will be "..%2FPROJECTNAME%2Fstart.php" that doesn't seems ok.

comment:3 by jng, 14 years ago

The solution is to write the *decoded* url out to the template, while still passing the encoded version to child frames.

comment:4 by jng, 14 years ago

Resolution: fixed
Status: newclosed

Fixed for 2.2 in r5354,

r5330 fixed this in trunk

Note: See TracTickets for help on using tickets.