I have the habit of ctrl/cmd clicking on links to open them in a new tab, and I have found that when I do this it opens the link in a new tab, but also takes me to the same page in the current tab. This doesn’t happen on other websites. You can test this by ctrl/cmd clicking on AN in the top bar for example. The screenshot is from this page and I am using firefox.
Yeah, same for me. Sometimes it happens and sometimes it doesn’t though (generally it does).
I’m not really clear on what is happening. Can you explain it again using different words? Especially, what is in the url in the new tab? And does this happen ctrl clicking on other links or just on the breadcrumb bar
?I ask because I can’t reproduce. I’m also using FF.
For example, on this page:
https://suttacentral.net/pitaka/sutta/minor/kn/thig?lang=en
I ctrl-click on “Ekakanipāta”. There’s both a new tab opening, and the current page also goes to Ekakanipāta.
Like this:
Both URLs are to Ekakanipāta like this:
https://suttacentral.net/thig-ekakanipata?view=normal&lang=en
This also does the same. FWIW I’m using Chrome on Ubuntu.
Strange. I can’t reproduce.
And to be clear, this is only on the breadcrumbs that you get unexpected behaviour?
So ctrl click on a breadcrumb does two things:
- It correctly opens the new tab with the clicked on link
- It incorrectly behaves in the current tab as if the user had just done a regular click and therefore opens the clicked on link in the current tab.
Correct?
So if you go to this page and ctrl click on Puṇṇā, does the current page also go to Puṇṇā?
Yup.
For these, nop. Here Ctrl-Click behaves normally.
It also behaves normally when I Ctrl-Click on Parallels. Apparently, these were the exceptions that I had but didn’t know.
Edit: And no problem when I ctrl-click on Bhikkhu Sujato or Ayya Soma in this page.
But again, on previous page, ctrl-clicking “Book of the Ones” behaves abberantly. Like here:
Strange. @HongDa, are you aware of this?
I see exactly the same behavior with both Chrome and Firefox on Ubuntu.
The problem occurs
- when clicking on a breadcrumb
- when clicking on a link in a navigation card
It does not occur
- when clicking on a next/previous button
- when clicking on a link in the parallels view
Are there other cases I didn’t think of?
The additional problem is that often, when using back arrow to go back to my original page—which I still want to see in order to compare other things—the site has great problems to load. Sometimes I even don’t get it loaded at all and have to go back to the home page and navigate all the way through the navigation cards again to get back to where I wanted.
Specifically, it behaves abberantly until coming to the final page where you choose an edition; it behaves normally when choosing a translation.
@ausername, are you also on Ubuntu? I’m on Windows and can’t reproduce. It would be odd if this was an OS problem.
Just tested in a Mac and it also behaves abberantly on MacOS. Might be something UNIX based lol?
This was from MacOS, however I’ve also experienced it on Windows.
The next button works as expected. On the discourses page when you do a CMD/Ctrl click on a link in the main suttas page SuttaCentral it opens a new tab for the correct page but also updates the current page content without changing the URL. So the unexpected behavior is in the breadcrumbs bar, and on the cards for going into a chapter. @Snowbird I can send you a video if that would help.
Videos are golden! If it’s possible for you to upload the video to a file sharing service (like mediafire.com
) and then post a link here that would be ideal so the real devs would be able to view as well.
What would be even better at this point, would be for someone who can replicate the problem (that is, not me ) to create an issue on github. It seems like this is a genuine issue and probably not something that @HongDa will be able to fix with just a quick change.
Thanks all!
here is a link for the taken from my mac using firefox. I have also verified just now that the same behavior happens from my windows box with firefox cmd-click
Perfect! A video is worth 10k words
I can verify this doesn’t happen for me, FWIW.
Thanks for the report and for all the explanation.
FWIW it seems fixed now on my Ubuntu.
And seems broken again! As I said, it comes and goes. It’s pretty weird.
@ausername @Dogen @Snowbird @sabbamitta Thank you for your feedback
I can reproduce this problem. Let me check it out.