Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link to file or folder links to the unsafe url instead of the files internal url. #4883

Closed
small1 opened this issue Oct 19, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@small1
Copy link

small1 commented Oct 19, 2023

Describe the bug
When using Link to file or folder it takes the url link in the url bar. If the markdown is shared and the file ends up somewhere else the link to that file is broken as that user has the file in a different location.

This means that files attached in collectives or shared documents will be broken.

To Reproduce
Steps to reproduce the behavior:

  1. Open a new text document (or a new page in colectives)
  2. go to where you want to have the link and choose link to file and folder. Select a file.
  3. Check the url created. It will be the unsave url from the url field in the browsers and not the internal link to the file

Expected behavior
The internal link to the file should be in there.

Screenshots
If applicable, add screenshots to help explain your problem.

Server details:

  • Nextcloud version: 27.0.2 and 27.1.2
  • PHP Version: 8.1
  • Database: Mariadb

Client details:

  • OS: linux and windows
  • Browser: Chrome
  • Browser version: latest
@small1 small1 added the bug Something isn't working label Oct 19, 2023
@mejo-
Copy link
Member

mejo- commented Feb 28, 2024

This is fixed by #5412

@mejo- mejo- closed this as completed Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants