app/helpers/pageflow/linkmap_page/areas_helper.rb in pageflow-linkmap-page-1.0.0 vs app/helpers/pageflow/linkmap_page/areas_helper.rb in pageflow-linkmap-page-1.1.0
- old
+ new
@@ -6,10 +6,10 @@
def linkmap_areas_div(entry, configuration)
hover_image_file = Pageflow::ImageFile.find_by_id(configuration['hover_image_id'])
visited_image_file = Pageflow::ImageFile.find_by_id(configuration['visited_image_id'])
mask_sprite_url_template = MaskSprite.new(id: 1, attachment_file_name: 'data').attachment.url
- .gsub(%r'(\d{3}/)+', ':id_partition/')
+ .gsub(%r'/(\d{3}/)+', '/:id_partition/')
render('pageflow/linkmap_page/areas/div',
entry: entry,
configuration: configuration,
data_attributes: {