Selected view in shared link not saved

Context

I created a project with multiple views and I want to share a particular view of a project via a link so users don’t have to login to see that particular view. When I select a particular view to be shared via a link, and come back to that setting later, the first view is always selected.

Steps to reproduce

  1. Create a project and create more than one view
  2. Open the Share settings and go to the Share Link section
  3. Create a new Sharing Link and select a view that is not the one at the top of the dropdown
  4. Now close the Sharing window
  5. Now open the Share settings again
  6. See that the view you chose is no longer selected: the View selection of the Share link defaults to the first view in the dropdown

This is working as intended. The view parameter is only added to the link when you copy it from the list. It is not saved.

Ah, that is not completely clear from the UI. So, if I understand correctly:
When you share a project, you can “pre-select” the view for the recipient of the link. Because you are not sharing the view only, but rather the whole project, it does not matter which of the views is selected and the link can be deleted to unshare the project, regardless of the view selected.

I noticed the URL is indeed changing at the end, for example https://[...]?view=20. The bug is then slightly different, but you might get my confusion about the view dropdown:

No matter which view you select (and which number is present in the sharing link’s view parameter), it is always the first view that is visible first for the recipient.

Steps to reproduce:

  1. Create a project and create more than one view
  2. Open the Share settings and go to the Share Link section
  3. Create a new Sharing Link and select a view that is not the one at the top of the dropdown
  4. Copy the link
  5. Open a new InPrivate window, paste the link and go
  6. See that the view you chose is not visible, but rather the first view is visible

I’ve tested this on my own instance (latest version) and try.vikunja.io. Can you reproduce this, too?

Ahh now I understand. I thought you were talking about how the selection in the share link list was not saved.

I was able to reproduce what you’re describing, will look into a fix.

1 Like

This is now fixed in cb3fc70491, please check with the next unstable build (should be ready for deployment in ~45min, also on try).

That indeed fixed it! Thanks!!