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 , 15 years ago
comment:2 by , 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 , 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 , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
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?