Here is one of the LibreOffice options: Tools > Options > Load/Save > General > Save URLs relative to file system.
Most of the time we want this option to be enabled, because it provides us an opportunity to insert linked images with relative paths instead of absolute ones.
Typically, we would store the linked images close to the target document - in such a case, "Save URLs relative to file system" works fine. See below.
The problem with "Save URLs relative to file system" option is that it works the same way for linked **templates**.
The templates - in contrast with images - are typically stored in the special "Templates" directory. On Windows, it will be %AppData%\LibreOffice\4\user\template. They don't "travel" with the document.
Hence, when you have "Save URLs relative to file system" option is enabled, and then you create a document with a template linked to it, and then you save and close it, and then you move it to another disk drive (e.g., to the disk D), the document will stop to notice any changes in the template it is linked to.
Step by step guide:
0. Ensure "Save URLs relative to file system" option is enabled.
1. Create a custom template and save it to %AppData%\LibreOffice\4\user\template. (It is assuming that this directory is located on the disk C.)
2. Create a document based on this template. Save it do disk C. Ensure the template is linked to it.
3. Close it. Move it to disk D.
4. Open the template and make some changes in its styles. Of course, save it and close it.
5. Open the moved document and notice that there is no prompt to update the styles.
Steps to Reproduce:
User Profile Reset: Yes
How it should be fixed:
The linked templates should always use absolute paths; not relative ones. That is, "Save URLs relative to file system" should not affect how they are linked.
> Open the moved document and notice that there is no prompt to update the styles.
Version: 220.127.116.11.alpha0+ (x64)
Build ID: 54d3760f7dbd759cc8de6c777c6a2154d2382f16
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win;
Locale: de-DE (de_DE); UI-Language: en-US
LO user Profile:
meta.xml, document saved to
a) same drive:
<meta:template xlink:type="simple" xlink:actuate="onRequest" xlink:title="HelloTest" xlink:href="../user/template/HelloTest.ott" meta:date="2020-03-28T11:15:37.978000000"/>
b) different drive:
<meta:template xlink:type="simple" xlink:actuate="onRequest" xlink:title="HelloTest" xlink:href="file:///D:/sources/libo-core/instdir/user/template/HelloTest.ott" meta:date="2020-03-28T11:11:49.175000000"/>
After a template styles update there is no info about changed styles in case a) if the document has been moved to a different path. In case b) a message box pops up:
"The template 'HelloTest' on which this document is based, has been modified. Do you want to update style based formatting according to the modified template?"
btw: I remember there was a template changer extension available:
I think there should be a configuration option to let the user know that the document template is not available. In this case, you should be able to reassign the template.
> I think there should be a configuration option to let the user know
> that the document template is not available.
Yes, I think it is good idea. It could be considered as a temporary solution until LO will be able to handle it in a more elegant way.
Deprecated. One should use DocumentTemplateChanger instead.
To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.
There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.
If you have time, please do the following:
Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/
If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.
Please DO NOT
Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not
appropriate in this case)
If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/
2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword
Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa
Thank you for helping us make LibreOffice even better for everyone!
@larson -- have you tried to add paths for templates in Tools > LibreOffice > Paths > Tenplates?
Also -- maybe the summary for the bug can be improved so that it specifies the situation more exactly