microsoft / azure-devops-extension-sdk

Client SDK for developing Azure DevOps extensions
MIT License
125 stars 39 forks source link

Bookmarking a 'tab' that is added by an extension does not work #36

Open edtro opened 3 years ago

edtro commented 3 years ago

Hi, I have created an extension, that adds a custom tab (type: ms.vss-web.tab) to the queryresults page (targets: ms.vss-work-web.query-tabs). Everything is working fine... except when I try to bookmark the tab.

I am just copying the url, that is something like this: https://XYZ/_queries/mypublisherid.mycontributionid/query-guid/

When I close the browser and try to use the bookmark... it doesnt work. It just opens the queryresults page. At first it looks like that this is a loading issue... the custom appears after a second when everything else is loaded. So I have tried to optimize everything at my end.

But I also tried the following...

I have closed the browser Opened it with the bookmark... it shows the query results page (that is not the expected result) I am waiting untill the tab has appeared (so everything is loaded) I am re-using the bookmark... but this also results into the query results page (that was something I really didnt expect) It only seems to work whenever I have had opened the custom tab itself, within the browser session. Once I have done this, using bookmarks (like within the teamprojects homepage wiki) is no problem.

But I want to be able to bookmark it and save it as a favourite within my browser... or be able to sent someone the url by email.

Unfortunately this seems to be not possible.

I am using the new API.

The samples from the old VSS api... the contribution guide... seems to be able to do this without any problems.

So I am hoping you could help me out.

Kr Edward

edtro commented 3 years ago

This issue was originally posted here: https://github.com/microsoft/azure-devops-extension-sample/issues/58