Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
hi there,
I try to use a link out of a view to jump within the panel..
...
<a class="active" href="/de/node/5/blog/1#node-702"><Link</a>
It not not working with one click, I need TWO!!!? the first click brings the anchor to url/reloads the page and the second click jumps.. What could be the cause of this?
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedThe behavior suggests the actual URL in the tag is not the URL the page is on? I don't know why this would be but I don't see how this is related to Panels.
Comment #2
Apfel007 CreditAttribution: Apfel007 commentedsorry for reopen, but the url is the same like the panel page... only with an anchor
Do you have any idea why this happen.. first click page reload - second click jump to anchor point?
Comment #3
vomitHatSteve CreditAttribution: vomitHatSteve commentedThis probably isn't a panels issue per se, but this is the only place I've managed to find where this specific question is being addressed, so maybe it'll be answered here?
I have the exact same problem with some custom code I'm working on.
The first click reloads the page. The second jumps to the anchor.
I've tested this on Firefox, IE, and Chrome. What could be causing this?
Edit:
Until I can find an actual fix, here's a klugey workaround I figured out.
assuming we have a an anchor named "anchor" somewhere, we create our link like so
Comment #4
munti CreditAttribution: munti commentedHi! I had the same problem, but none of the solutions i read worked.
I solved the problem with javascript:
<a href="javascript:document.getElementById('myid').scrollIntoView(true);">link</A>
Comment #5
japerrygood. marking what is in d6 as fine then.