Gravatar for jlynch@sonusnet.com

Question by Jim Lynch, Jun 13, 2016 5:57 PM

Put link behind a CoveoTab

Our application has several CoveoTabs. However, there is one Tab where we just want to have a URL attached to it so that when the user clicks the tab it simply opens a new browser tab (target="_blank") with the URL. In other words, no REST query. Is this possible ?

Thanks Jim

1 Reply
Gravatar for mlaporte@coveo.com

Answer by Martin Laporte, Jun 13, 2016 6:33 PM

I think you could hook on the "click" event on the tab and then do a window.location.href = "...", and then return false from the handler to prevent it from being processed further. Otherwise you can simply put a normal a element there and style it to look the same as the other tabs.

Gravatar for jlynch@sonusnet.com

Comment by Jim Lynch, Jun 14, 2016 8:43 AM

Thanks you, that worked well.

Gravatar for jlynch@sonusnet.com

Comment by Jim Lynch, Jun 14, 2016 11:27 AM

I was able to resolve this problem based upon your answer to this question: https://answers.coveo.com/questions/6644/put-link-behind-a-coveotab

Thanks Jim

Gravatar for mlaporte@coveo.com

Comment by Martin Laporte, Jun 14, 2016 11:31 AM

Possible that you put the comment on the wrong question?

Gravatar for jlynch@sonusnet.com

Comment by Jim Lynch, Jun 15, 2016 12:27 PM

Well, one problem led to another. Instead of putting a link behind the CoveoTab, I used your suggestion from the other question to ultimately resolve the problem.

Ask a question