Relative Path Feature Issue

Imported from UserVoice

Author: Yunus

Hello ONLYOFFICE Team,

The relative path feature does not work as expected. When selecting resources, only files (like .png) can be chosen, not folders. Additionally, paths always appear as full paths, requiring manual editing to create relative paths.

Folder selection support and proper relative path handling would improve usability.

Please specify where exactly do you use relative paths in the app. Additionally, please elaborate on the suggestion to implement folder support - do you refer to the possibility to attach folders in a document?

In the Spreadsheet editor, right-click on a cell → Link → Select file. Here, I cannot select folders and am restricted to only files (like .png, .pdf).

As for the relative path issue, when I select a file, it always inserts the absolute path (e.g., C:\Users\ASUS\Desktop\Trading Data\Trading_Journal\Screenshots\2026-06-05 Weekly Review\EC.png). I need to use relative paths (e.g., Screenshots\2026-06-05 Weekly Review\EC.png) so the links don’t break when the folder is moved or shared. Currently, I have to manually delete the absolute part and leave only the relative path every time. It would be much better if the path were automatically generated as a relative path.

Please refer to this topic: Hyperlink to Folder - #2 by Constantine

As an example, on Windows I can open a folder with linkable file, select it, then simply removing the file name and last slash will allow linking the folder itself.

  • Link to the file: C:\Users\Admin\Documents\File.docx
  • Link to the folder: C:\Users\Admin\Documents

When clicking such link you will get a confirmation window, where you can decide whether you want to open the link or not.


I’m not sure if any processors allow usage of relative paths, have you encountered one? If so, please let me know which actually does for the reference.

Hello,

  1. Regarding the folder selection: the current workaround of selecting a file and then manually deleting its name from the path is a bit inconvenient. It would be really helpful to have a direct folder selection option.

  2. To answer your question about relative paths: As far as I know, programs like Excel and LibreOffice do support relative paths. I can’t verify this at the moment because I don’t use those programs for personal reasons, but I believe it is a standard feature.

I hope you will consider adding both a proper folder selection option and automatic relative path support to ONLYOFFICE in the future.

Thank you.

Hello @Yunus,

Thank you for the clarification and for taking the time to point out how Excel and LibreOffice handle this — we confirmed that both do support relative hyperlink paths, so the reference is very helpful.

This improvement is on our roadmap, though there is no ETA at the moment. We will update this thread once it becomes available.

We appreciate your feedback — it helps us prioritize.
Feel free to keep sharing your ideas on the community!

1 Like