After using a preview link a cookie is set which is not properly cleared when trying to switch workspaces. This prevents other workspace negotiators to be selected when setting the new active workspace.
Steps to reproduce:
1. create two workspaces
2. activate the first and generate the preview link
3. use the preview link (in the current session) and confirm that the preview link worked correctly and that the 'wse_preview' cookie has been set
4. try switching to the second workspace
The attached patch tries to solve this issue.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | interdiff-4.txt | 2.45 KB | amateescu |
| #6 | 3473673-4.patch | 3.55 KB | amateescu |
| #3 | 3473673-cant-switch-workspace-3.patch | 3.86 KB | paranojik |
| wse_preview_cookie.patch | 4.36 KB | paranojik |
Comments
Comment #2
plachLooks good and works well, thanks!
Nit: we can rely on constructor property promotion here :)
Comment #3
paranojik commentedFixed the nit @plach. Thanks!
Comment #6
amateescu commentedMade a few cosmetic changes, and committed to 2.0.x, thanks!
Comment #8
amateescu commentedWSE Preview has been promoted to a standalone module: https://www.drupal.org/project/workspace_preview