web icon indicating copy to clipboard operation
web copied to clipboard

No redirection to project space from notification

Open ScharfViktor opened this issue 1 year ago • 1 comments

ocis 5.1.0-prealpha+17b14ee78 web 8.0.0-rc.1

Steps:

  • admin creates space
  • admin adds member eintein
  • einstein open notification and click by space name

Actual: no redirect to Project space page. only after refreshing page

https://github.com/owncloud/web/assets/84779829/82dcec74-7d8f-4863-be20-f7f1a95abcb5

ScharfViktor avatar Jan 23 '24 16:01 ScharfViktor

Good catch, a redirect to the space will only work after a page reload because then the space is being loaded by the runtime. In order to achieve that without a page reload we need to:

  • Check if the notification subject is of type "space shared" (or something like that)
  • If so, load the space by its id and add it to the list of loaded spaces (spaces store)

JammingBen avatar Jan 26 '24 06:01 JammingBen