You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Closes [hotwired#549]
Add System Test level coverage to ensure that Turbo Drive navigations
will re-render any `<meta>` elements nested within the document's
`<head>`.
To achieve this coverage, introduce the `PagesController#show` action
that links to HTML pages that render their `<head>` based on the
`turbo_refresh_method` and `turbo_refresh_scroll` query parameters.
[hotwired#549]: hotwired#549
@morgoth thank you for opening this issue. I've opened #550 to implement the behavior you've described.
Unfortunately, no implementation changes were necessary to pass a JavaScript-enabled System Test that exercises the behavior as you've described. Could you provide some code review to help me reproduce the unexpected behavior you've experienced?
Currently when setting
turbo_refreshes_with(method: :morph, scroll: :preserve)
in layout, it is set globally.It's not easy to opt out of morphing on some single page. Duplicating meta tags via:
does not work.
Even such combo doesn't work:
<%= content_for?(:morphing) ? yield(:morphing) : turbo_refreshes_with(method: :morph, scroll: :preserve) %>
as the meta tags are cached between page navigation, so they cannot be overwritten this way.
Is there a nice way to do it? Maybe created meta tags should be marked with
"data-turbo-track": "reload"
so it's easier to change them between pages?The text was updated successfully, but these errors were encountered: