Open kvandake opened 5 years ago
Did you solve this problem, I don't think it's different from deleting
Adding custom attributes to the description tag and others, as in config.title_tag_attributes = { id: 'page-title' } would enable them to get updates via Turbo streams, too.
Faced a similar issue with the refresh tag. Had to add data-turbo-track="reload
" to avoid turbo interference with meta refresh. Previous page was refreshing even after navigating away. Here is a patch for that. Usage would be set_meta_tags refresh: { interval: 60, data: { turbo_track: 'reload' } }
module MetaTags
module RendererPatch
protected
def render_refresh(tags)
refresh = meta_tags.extract(:refresh)
if refresh.present?
interval = refresh[:interval].to_s
data = refresh[:data] || {}
tags << Tag.new(:meta, { "http-equiv" => "refresh", content: interval, data: })
end
end
end
end
MetaTags::Renderer.prepend(MetaTags::RendererPatch)
When I add Helmet to my React Application I have duplicates of the description tag. To solve a duplicate, I need to add attribute data-react-helmet to the description tag.
For example
Can I add this attribute?