Issue 90501 - relative hyperlink is lost during save/load if 'Save URLs relative' option is not set
Summary: relative hyperlink is lost during save/load if 'Save URLs relative' option is...
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: save-export (show other issues)
Version: OOo 3.0 Beta
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-08 22:59 UTC by aharnack
Modified: 2017-05-20 11:15 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description aharnack 2008-06-08 22:59:33 UTC
- Open the OpenOffice Writer or a new Writer document
- check that "Tools" > "Options..." > "Load/Store" > "General" > "Save URLs
relative to" options are both not set
- insert a Hyperlink (Insert > Hyperlink from the menu bar or Hyperlink from the
Toolbar)
- chose type document and enter a relative path starting with the current
directory (like ./file.txt)
- Apply and Close the hyperlink dialogue
- open the Navigator, open the hyperlink just created and check the document
path: it should still be as entered
- Save and close the document
- reopen the document
- open the Navigator and check for hyperlinks: the hyperlink is gone!

The "content.xml" in the document.odt file contains a line that reads:

<text:a xlink:type="simple" xlink:href="">./file.txt</text:a> 

If the document is saved as HTML the link looks OK:

<P STYLE="margin-bottom: 0cm"><A HREF="./file.txt">./file.txt</A></P>

The problem does not occur if the “Save URLs relative†options are set.
Apparently it is the “Save URLs relative to file system†option that matters.
Apparently it doesn't matter if the file targeted actually exist or not.
Comment 1 michael.ruess 2008-06-09 09:02:56 UTC
Reassigned to ES.
Comment 2 eric.savary 2008-06-09 14:05:37 UTC
As described
Comment 3 Martin Hollmichel 2008-12-10 11:17:57 UTC
move target to 3.2.
Comment 4 Mathias_Bauer 2009-02-02 13:22:32 UTC
Oliver, please take over
Comment 5 Oliver Specht 2009-09-30 09:32:13 UTC
Target changed to 3.x
Comment 6 Marcus 2017-05-20 11:15:35 UTC
Reset assigne to the default "issues@openoffice.apache.org".