Problem/Motivation
The lupus_decoupled_responsive_preview module adds a "Preview link" to the responsive preview toolbar tab on layout builder pages, allowing editors to open the frontend preview in a new browser tab. This was implemented via hook_toolbar_alter().
With Drupal core's new Navigation module replacing the Toolbar module, hook_toolbar_alter() no longer fires and the preview link is lost.
Proposed resolution
Port the preview link feature to the Navigation module's top bar
Issue fork lupus_decoupled-3582576
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 #3
arthur_lorenz commentedComment #4
fagothx. Please make sure there are no static analysis warnings left + to add a kernel test to proof its working fine. we can add navigation to require-dev if needed.
Comment #5
arthur_lorenz commentedAdded tests and addressed phpstan warnings.
Comment #6
fagothx!
works fine, but we run into some space issues in the top-bar now, what seems to be a larger problem.
I also add a couple for remarks to the PR, please take a look at those.
Comment #7
arthur_lorenz commentedThx, I addressed your feedback in the MR.
The issues in the top bar should imo be handled upstream in responsive_preview to make the tool collapsible, with or without our extra link. I will create a ticket for it.
Comment #8
fagoreviewed, PR seems solid. I'll give it another test, but seems ready.
Comment #10
fagoworks great, merged!