it looks like a typo in the code.
in views_display_switch.module on line 73
if ($request_mode === 'collection_table') {
$view->setDisplay('collection_table');
}
maybe it should be like this:
if ($request_mode === $display_id) {
$view->setDisplay($display_id);
}
Issue fork views_display_switch-3189766
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
luksakOops, that looks like project specific code that slipped in.
Do you want to create a fork send me a merge request with that fancy green button above?
Comment #4
luksakThank you! The fix is merged and I released a new version.
Comment #5
luksakSomehow the release takes longer than usual... I pushed it to 1.1.x and created the 1.1.1 tag: https://git.drupalcode.org/project/views_display_switch/-/commit/6c047c3...
Comment #6
luksakI just fixed the release with the d.o infra team: https://www.drupal.org/project/views_display_switch/releases/1.1.1
Comment #7
bonzik commentedit looks like I made a critical error in logic
Comment #12
luksakThanks! Sorry, I didn't properly test your merge request. I just made a release: https://www.drupal.org/project/views_display_switch/releases/1.1.2