How can i use an anchored link to jump over paginated Content

Viewed 28

I wanted to use an anchor in a small text to link to a full description of an Item. In between the teaser and the full description is paginated content.

The software i use is JTL Shop 5 (its php / smarty / html based). The current behavior is:

  • when there are too many articles they get paginated. As long as they are paginated the anchor does strange things. Sometimes it jumps to the designated tag, some other time it jumps right back. And on other occasions it wont move any pixel.

The expected behavior is:

  • whether paginated or not paginated the href anchor should jump to the id.

Is there any chance how to achieve this?



Edit:
Seems to be that its just a bug with the shop system itself.
https://issues.jtl-software.de/issues/SHOP-5146
nearly the same issue with an Ajax Request reloading content.


Edit2:

As User FUZIION mentioned i havent shown any part of the things i tried to resolve the issue.

I found another class in the shopsystem that influenced the behavior. By commenting out that class the problem was resolved but the Shop was unusable because no interaction was possible anymore.
The Ajax Request has something to do with some "smoothscrolling" function.

Additionally i tried to check if there are Tags in the html that seem to affect the anchors. None of these were found.

I could work with links, but that wouldnt fix the issue itself just bypassing it.

I tried to bypass the regex query var anchorRegex = /^#[\w\-]+$/; by adding an additional octothorpe to the anchor id.

0 Answers
Related