Skip to content

A preview deep link to a non-media file shows another file or an endless spinner #3766

Closed

Description

@AlexAndBear

Initial Checklist

  • I understand this is a bug report and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

Bug Description

A preview deep link to a non-media file shows another file or an endless spinner. Cause: packages/web-app-preview/src/App.vue:396-410 falls back to index 0 when the file isn't a media file; with no media the spinner (:32-34) never stops.

Reproduction Steps

  1. Open /preview/…/plain.txt?fileId=… (e.g. a stale link).

Expected Outcome

"This file can't be previewed" with a way back.

Actual Outcome

In a folder with images the first image is shown under the txt URL; without images an endless spinner without top bar.

Screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions