Skip to content

Bug with default library view and default view for Document Sets #10494

@joelfmrodrigues

Description

@joelfmrodrigues

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

not applicable

Developer environment

Windows

What browser(s) / client(s) have you tested

  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

Additional environment details

Not applicable

Describe the bug / error

Default library view not applied when navigation using breadcrumb from a subfolder of a document set that is configured to have a different default view

Steps to reproduce

  1. Create a document library and some views
  2. Set one of the views as default
  3. Add a document set content type to the library (I am using a custom content type based on Document Set, in case this matters)
  4. Go to the content type settings and define the welcome view for that document set content type to be a different view
  5. Create a folder and a subfolder of that folder (library > document set > folder )

Behaviour observed:

  • User opens the library and default view for the library correctly displays
  • User opens document set and the view is switched to the one set as default for document sets as expected
  • User clicks on the first node of the breadcrumb to go to the root of the library and the view switches to the default view set for the library, as expected

This is where the issue happens:

  1. User opens the document set and then the subfolder - The view at this point is the default one for document sets, as expected
  2. User clicks on the first node of the breadcrumb to go to the root of the library, and the view does not switch to the default view of the library, it keeps the same it had before
  3. The view automatically switching from the document set view to the library view only seems to happen when the user is in the document set itself, not when he is inside a folder of a document set.

This is happening with the existing UI and also with the new UI currently rolling out to tenants in targeted release.

Expected behavior

Default library view should be applied when navigating to the root of the library regardless of the previous location of the user

Metadata

Metadata

Assignees

Labels

sharepoint-developer-supportsharepoint-developer-supporttype:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.type:invalid-not-dev-issueThis repo+issue list is for SharePoint development topics. Non-dev issues will be closed.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions