Viewing 5 replies - 16 through 20 (of 20 total)
  • Plugin Support Michael Beckwith

    (@tw2113)

    The BenchPresser

    Can you give this version a try?

    https://github.com/WebDevStudios/Hash-Link-Scroll-Offset/archive/relative-offsets.zip

    I’d recommend cloning a copy the current version of the plugin and leaving that in your plugins folder and then upload this version into that original folder. Saves from having to deactivate/reactivate.

    I received some help from a coworker and this is what they found:

    “a href=”/profile/#test3” test link 3 /a- the element isn’t matched because the path is relative – even though the current page is ‘/profile/’, the path is still in the anchor.

    this is a bug, as the anchor still works as intended in the browser”

    For a summary of what changed: https://github.com/WebDevStudios/Hash-Link-Scroll-Offset/pull/15/files

    Please let me know if this helps at all.

    Thread Starter pac0571

    (@pac0571)

    Which path are you referring to, because I tried making the path in my link to be absolute, and it didn’t help.

    Thread Starter pac0571

    (@pac0571)

    Just updated so you can see.

    Thread Starter pac0571

    (@pac0571)

    But… the version you sent me from github seems to be working. Excellent. Thank you.

    Plugin Support Michael Beckwith

    (@tw2113)

    The BenchPresser

    Yes, does appear to be working as expected on my end as well.

    Sorry if I came off as difficult. Was doing the best I could within the restraints I had.

    To summarize, the selector in the JS wasn’t quite right to handle the relative urls being employed in this case, but the browser as a whole still recognized enough to move the window to the anchor. One solution would have been to use more absolute urls, but we instead went the route to make it better recognize the urls as a whole, in case others are doing the same. Easier to just handle ourselves.

    Thanks for sticking with me through this.

Viewing 5 replies - 16 through 20 (of 20 total)

The topic ‘Not working on same page’ is closed to new replies.