Use a unique/random HTML Id for Ad Tags

Created on 2 March 2017, over 7 years ago
Updated 15 September 2023, 10 months 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.69.0 2024