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(links): Insert /f/<fileId> format for links to files #5412

Merged
merged 2 commits into from
Feb 27, 2024
Merged

Conversation

mejo-
Copy link
Member

@mejo- mejo- commented Feb 24, 2024

📝 Summary

Get rid of the old /path/?fileId=<id> format. It never really worked anyway because the paths were relative to the users' home directory.

Instead, insert links to files/folders as full URLs with the /f/<fileId> format. This makes link previews work both in Text and Collectives.

Rewrite links in the old format to the new format. But don't touch absolute link (without origin) to the collectives app to not break collectives-specific link handling to other pages.

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits
  • Tests (unit, integration and/or end-to-end) passing and the changes are covered with tests
  • Documentation (README or documentation) has been updated or is not required

@mejo- mejo- added bug Something isn't working 2. developing labels Feb 24, 2024
@mejo- mejo- force-pushed the fix/link_to_files branch 4 times, most recently from a18314e to 4c6c5c3 Compare February 26, 2024 10:54
Get rid of the old `/path/?fileId=<id>` format. It never really worked
anyway because the paths were relative to the users' home directory.

Instead, insert links to files/folders as full URLs with the
`/f/<fileId>` format. This makes link previews work both in Text and
Collectives.

Rewrite links in the old format to the new format. But don't touch
absolute link (without origin) to the collectives app to not break
collectives-specific link handling to other pages.

Signed-off-by: Jonas <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants