nextcloud / nextcloud/server

[Bug]: Internal link. Positioning occurs on the file, rather than opening the file for viewing.

Open
#49,889 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage 28-feedback bug
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

⚠️ This issue respects the following points: ⚠️
Bug description

If I present the "Internal Link" to another colleague, then when they click on it, the positioning occurs on this file, but any file should open for viewing.

Если я представляю "Внутреннюю ссылку" другому коллеге, то при переходе на нее происходит позиционирование на этом файле, а нужно чтобы любой файл открывался для просмотра.

Steps to reproduce
  1. Create an internal link to the document - https://drive.rarus.ru/f/27919957
  2. Give it to another colleague
  3. The colleague follows the link and sees a list of all the documents in the folder, but the file does not open via the internal link, it is simply positioned.

For example, if you make a link to a file with the .txt extension, then this file will immediately open for viewing - https://drive.rarus.ru/f/27920035
You need to do the same

  1. Создаем внутреннюю ссылку на документ - https://drive.rarus.ru/f/27919957
  2. Отдаем другому коллеге
  3. Коллега переходит по ссылке и видит список всех документов в папке, но при этом файл по внутренней ссылке не открывается, а просто позиционируется.

Например, если сделать ссылку на файл с расширением .txt - то этот файл сразу откроется для просмотра - https://drive.rarus.ru/f/27920035
Необходимо сделать так же

Expected behavior

It was expected that any documents would always open for viewing. It was expected that videos would also open for viewing, and not for downloading as is the case now.

Ожидалось, что любые документы всегда будут открываться на просмотр. Ожидалось что видео так же откроются для просмотра, а не для скачивания как это происходит сейчас.

Nextcloud Server version

28

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.3

Web server

Nginx

Database engine version

MySQL

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?
  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other
Configuration report

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are identified in the issue. Reproduce the behavior with the two linked internal-file URLs and compare their handling; done means supported documents open in the viewer through internal links and videos open for viewing rather than downloading.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.