timeline item or every item in new window/tab
Hello,
It would be great if the next update included an option to open timeline items (profile, photo, blog, etc.) in a new window or tab, or generally an option to open items in new window for the site
-
- · PavelS
- ·
I don’t think this is something that should be handled by the UNA core. Opening links in a new window would have to be done with JavaScript, because the timeline uses AJAX and the links are generated dynamically, if I’m not mistaken.
I also can’t really imagine every timeline item opening in a new tab. With a larger number of users, that would mean dozens of open tabs, which would probably make the site harder to use.
So yes, technically it can be done with custom JS, but as a global UNA feature it probably wouldn’t make much sense. Maybe I misunderstood what you meant.
-
- · poison07
- ·
Hello, the idea is that if you scroll down the timeline (for example, for 1 minute) and then click on a profile link and go back, you are taken back to the beginning of the timeline.
I’ve received feedback from users that this is not optimal, and I understand their point. The same issue happens with profile search.
I know that users can open links in a new tab or window, but many people don’t think of that or don’t bother.
If you know which JavaScript I should use and where to implement it, please let me know—that would help as well.
-
- · PavelS
- ·
Hello @poison07 I would first recommend taking a look at the Personal Bookmarks module from @AQB Soft Users usually get used to it very quickly, and it’s simple, clear, and works well for situations where they want to return to a specific post later.
Regarding the timeline: if you have infinite scroll enabled, it becomes very difficult to determine exactly where the user left off. New items can appear while they are browsing, so the scroll position is not stable. That’s why UNA often jumps back to the top when returning to the timeline.
Technically, it’s possible to add custom JavaScript that forces items to open in a new tab. It works, but it’s more of a workaround than a real solution. It’s worth considering whether this makes sense in the long run — sometimes following every user request can actually make the platform harder to use or less consistent.
Maybe I misunderstood your intention, but from what you wrote, it seems the issue isn’t really about opening items in a new tab, but rather about how infinite scroll itself works. And unfortunately, UNA has some limitations there.
Yes, I think I'm capable of writing something like that, but it will take some time to test so that it doesn't affect other UNA features, but I still recommend you take a look at it and reconsider everything not only as a user but also as a administrator :)