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

Fix broken file links #2268

Merged
merged 1 commit into from Apr 6, 2022
Merged

Fix broken file links #2268

merged 1 commit into from Apr 6, 2022

Conversation

julien-nc
Copy link
Member

Currently, when opening Text from the files app and clicking a file link (created with the menu bubble), the target URL is /apps/files/RELATIVE_PATH?fileId=FILE_ID which does not lead anywhere so we get redirected to the default app.

This simple fix checks if the link points to NC and contains the fileID GET param. If so, an internal link is generated and opened.

We could also change what's written in the file's content. Currently it's something like
[LINK_TEXT](RELATIVE_PATH?fileId=FILE_ID)
Any thoughts on that?

@julien-nc
Copy link
Member Author

/compile amend

src/marks/Link.js Outdated Show resolved Hide resolved
@julien-nc
Copy link
Member Author

/compile amend

Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants