| Summary: | URI page link service uriTemplate not resolving properly | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Chris McGee <cbmcgee> |
| Component: | Client | Assignee: | Project Inbox <orion.client-inbox> |
| Status: | RESOLVED INVALID | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | mamacdon |
| Version: | 4.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
You can fix this by changing your uriTemplate to prefix the OrionHome variable with a +, eg. > uriTemplate: "{+OrionHome}/my/search.html" The plus causes the OrionHome variable to be inserted without %-encoding. see bug 419627 Thanks for the tip. Things are working again after using the + qualifier. Marking INVALID. This was a breaking change in Orion 4.0 for many extensions that supplied a URI template, but unfortunately it had to be done to fix encoding issues. |
When adding a page link using the service like this the browser is redirecting to an invalid URL: provider.registerServiceProvider("orion.page.link", {}, { name: "My Search", id: "my.search", uriTemplate: "{OrionHome}/my/search.html" }); When I invoke this page link from the editor page the browser is redirecting to a URL like this: http://127.0.0.1:2022/edit/http:/127.0.0.1:2022/my/search.html#location=%2Ffile%2Fhello In previous milestones of Orion the URL would redirect like this: http:/127.0.0.1:2022/my/search.html#location=%2Ffile%2Fhello