#6166 - Snippets do not process zones correctly (when using RAW URL scheme)
| Identifier | #6166 |
|---|---|
| Issue type | Minor issue (breaks specific functionality) |
| Title | Snippets do not process zones correctly (when using RAW URL scheme) |
| Status | Completed |
| Tags |
Roadmap: v11 (custom) |
| Handling member | PDStig |
| Version | 11 beta8 |
| Addon | core |
| Description | When calling a snippet script, all zone functionality is broken (e.g. get_zone_name and the like return a blank string for the zone).
This is very problematic because anything running snippets with a form (e.g. profile edit tab) could end up creating an invalid form action URL, preventing the form from being submitted (e.g. members cannot make profile changes unless single public zone is turned on). I am unable to fix it. And AI is not able to help either. |
| Steps to reproduce | |
| Additional information | The single public zone option will be forced on until fixed to work around this bug.
It is possible an automated test screwed something up. I'll investigate further, but I've spent too much time trying to fix it. |
| Funded? | No |
| Commits |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments
Added some additional complex logic in ajax.php which tries to guess the zone name from what we are running. Testing on editing member profile tab with RAW URL schemes and single public zone off seems to work.
Note that I have not confirmed whether this fix breaks any other URL schemes. Best to wait until 11 beta9 and not apply this hotfix.