Opening attached documents in a new tab window

  • 3
  • Question
  • Updated 5 years ago
  • Answered
We have uploaded a few documents for club member and notice that if it is a PDF attachment - the link will open in the same window - whilst a word document will open i a new tab window. Would it be possible for all to be opened in a new window so if a check is required on website you can work back and forth via the tabbed windows

Thanks
Kishor
Photo of Kishor Shah

Kishor Shah

  • 36 Posts
  • 0 Reply Likes

Posted 6 years ago

  • 3
Photo of ClubBuzz

ClubBuzz, Admin

  • 1404 Posts
  • 105 Reply Likes
Unfortunately not!
Photo of SparsholtCricketClub

SparsholtCricketClub

  • 25 Posts
  • 2 Reply Likes
There is access to the source code.

On any other website that i have worked on you can just insert the following code into the link.

target="_blank"

and it will open in a new window. Is there a reason why this is not possible? More and more of our members are supplying me with items to upload on the site but because 90% of them are in pdf format i am taking my time to upload them because whenever someone clicks onto the link it will take them away from the website.
Photo of ClubBuzz

ClubBuzz, Admin

  • 1404 Posts
  • 105 Reply Likes
I have more clarification for you:

for uploaded documents like PDF and Word documents, these by default should just download and not open in a window at all as they are not web pages. Some browsers may have plugins that allow these content types to be displayed in a browser - this will be different from browser to browser and user to user depending on their setup. So if you are getting different behaviour from a word document to a pdf then that is down to their browser setup and outside of our control.

In relation to your question ref coding:

We strip out nearly all HTML markup for reasons of security and also to control the user experience. We only allow a very limited subsection of html elements and attributes that are whitelisted. This prevents people putting malicious javascript into their sites and breaking the layout of their sites by putting dodgy markup in.

The "target" attribute is one such attribute we strip out on the basis that it is very easily abused so in answer to your question we limit code access by design
Photo of Justin Willey

Justin Willey

  • 18 Posts
  • 0 Reply Likes
I think you should reconsider this policy so far as the target="_blank" attribute & setting is required. The current behaviour is highly frustrating for users and is allowed by many other systems (eg Wordpress)
Photo of ClubBuzz

ClubBuzz, Admin

  • 1404 Posts
  • 105 Reply Likes
Justin thanks for the feedback on this one.
Photo of Steven Lewis

Steven Lewis

  • 71 Posts
  • 0 Reply Likes
We also tried coding target="_blank" because web links were taking the user to another site in the same window when they had not logged off the Clubbuzz site
Photo of ClubBuzz

ClubBuzz, Admin

  • 1404 Posts
  • 105 Reply Likes
We have no immediate plans to make changes to this feature, thanks for the feedback we will continue to monitor
Photo of Justin Willey

Justin Willey

  • 18 Posts
  • 0 Reply Likes
Can you please re-consider this - it is something we are getting quite negative feed back about from our members.
Photo of ClubBuzz

ClubBuzz, Admin

  • 1404 Posts
  • 105 Reply Likes
We will add this to our development meeting agenda, will not be an immediate decision but we will revisit this