Automatically closed - issue fixed for 2 weeks with no activity.
I have what I thought was quite a simple scenario.
I have these all rendering nicely on the HTML page and each paragraph has only one paragraph-NNNN ID as expected.
All good so far.
The problem is the ToC view mode in action.
I can see...
<a href="#paragraph-6592"></a>
<a href="#paragraph-6591"></a>
BUT, what I'm also seeing is THREE erroneous inclusions of the the OUTER anchor link again before I get that
I have labelled the erroneous as such in the code below in order to be as clear as possible.
<div class="paragraph paragraph--type--sections paragraph--view-mode--ptoc-m">
<a href="#paragraph-6592">
<div class="field field--name-field-section-title field--type-string field--item">
A CONTENT SECTION
</div>
</a>
<div class="field field--name-field-content field--type-entity-reference-revisions field--items">
<a href="#paragraph-6592"></a> <<< Erroneous!
<div class="field--item">
<a href="#paragraph-6592"></a> <<< Erroneous!
<div class="paragraph paragraph--type--bitesize-snippet <strong>paragraph--view-mode--ptoc-m</strong>">
<a href="#paragraph-6592"></a> <<< Erroneous!
<a href="#paragraph-6591">
<div class="field field--name-field-bitesize-snippet-ref field--type-entity-reference field--item">
AN ITEM OF CONTENT
</div>
</a>
</div>
</div>
<div class="field--item">
<div class="paragraph paragraph--type--explainer paragraph--view-mode--ptoc-m">
<a href="#paragraph-6616">
<div class="field field--name-field-explainer field--type-entity-reference field--item">
ANOTHER ITEM OF CONTENT
</div>
</a>
</div>
</div>
</div>
</div>
What I am sure about is that those three (empty) anchor links do not come from my own content out put - they are definitely being created by the Paragraphs ToC module.
Any ideas anyone?
I'm a bit baffled by this; I've been using this solution for well over 18 months and I've only just noticed this behaviour but then I've just decided to re-vamp the theme and noticed them - I think the extra anchor links might have been there all along but I couldn't see them!?
Nick
Fixed
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Automatically closed - issue fixed for 2 weeks with no activity.