Use a unique/random HTML Id for Ad Tags

Created on 2 March 2017, almost 8 years ago
Updated 15 September 2023, over 1 year ago

Problem

Currently, a configured ad tag can be embedded only once on a page. Embedding a tag multiple times won't work because the HTML id by the TagView class will always generate the same Id. This is problematic especially in cases of lists of content which use the same tag config. Another problematic case is a site which uses infinite scrolling features to dynamically load more content via AJAX.

Proposed solution

Let the placeholder Id of TagView consist of a random part. Attaching a patch for this.

📌 Task
Status

Postponed: needs info

Version

1.0

Component

Code

Created by

🇩🇪Germany mxh Offenburg

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024