• Resolved Artus

    (@tintalent)


    Hi, this plugin solves my problems when having to share a tab content directly. However when I grab the url from the address bar eg. https://sandbox.test/tabs/#tab-content-0-1 and paste it on the browser. The page goes directly to the botom of the website. How can I prevent that?

    This is a great plugin thanks,

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Matt Lowe

    (@squelch)

    Hi @tintalent,

    That’s not the usual behaviour of the plugin, it sounds like something on the page is interfering with it. But without being able to see the page in question it’s impossible to say what could be happening. Is there any way you can share access with me?

    Thread Starter Artus

    (@tintalent)

    Thanks for the fast reply. Im still developing on my PC. However I see that it happens just when copying and pasting directly to the browser’s address bar. But when I clic on a link provided in a message (this is the way of sharing anyway) the cursor moves to the content which is fine. Can I do something to move the position a bit up so the user sees the other tabs as well? thanks again.

    Plugin Author Matt Lowe

    (@squelch)

    There are two different mechanisms at play. For links on the page there is some code that will jump to the specific location of that tab. When the page is loaded, however, the fragment in the URL, that is everything after the #, is interpreted by the browser as a position to jump to in the page.

    If you have a fixed header that can screw that mechanism up (which is just a consequence of having a fixed header) as the browser will literally just position the element with the ID specified in the fragment at the top of the page. It doesn’t know, however, that there is something obscuring it. If it’s a fixed header causing the problem then there are things you can do, but they’re all a bit hacky and introduce other issues of their own.

    But I’m only speculating here since I can’t analyse the actual page.

    Thread Starter Artus

    (@tintalent)

    Here find a test site, no extra plugins installed, no fixed header. Clik on the link to see the results. Same problem with other default themes. Thanks.

    https://dev.avpeducationnetwork.org/

    Plugin Author Matt Lowe

    (@squelch)

    Hey, thanks for supplying the demo link and my apologies for not responding sooner. I see what you mean now, I’ll take a look on this side and get a fix asap but I’m a bit swamped at the moment.

    Plugin Author Matt Lowe

    (@squelch)

    Hi @tintalent,

    I’ve just pushed release 0.4.3 which should address this issue. Please update and see if you’re still seeing the problem. Please let me know how you get on either way so that I can update this thread.

    Thanks!

    Thread Starter Artus

    (@tintalent)

    That works. Thanks!

    Plugin Author Matt Lowe

    (@squelch)

    Excellent, thanks for reporting the issue.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Page scrolling to bottom when visiting tab url’ is closed to new replies.