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
I'm allowing users to embed some search results so need to pass the query parameters with the embed code. It would be nice to have the option to pass either all query parameters or an allowed list of query parameters with the embed code.
I worked around this limitation with this initializer.
require'embed_me'moduleEmbedMemoduleLinkHelperdefcurrent_page_embed_url# return if no link availablereturnnilunlessembedded_link_available?(request.path)# get current linkcurrent_page=merged_embedded(request.path)current_page.merge!({only_path: false})current_page.merge!({params: request.query_parameters})# This is the line that does the trickurl_for(current_page)endendend
The text was updated successfully, but these errors were encountered:
I'm allowing users to embed some search results so need to pass the query parameters with the embed code. It would be nice to have the option to pass either all query parameters or an allowed list of query parameters with the embed code.
I worked around this limitation with this initializer.
The text was updated successfully, but these errors were encountered: