Apache OpenOffice (AOO) Bugzilla – Issue 111358
Extra characters appended in the generated URL when Inserting hyperlink from web content.
Last modified: 2010-05-08 14:00:58 UTC
[Steps] 1. Launch OOo writer 2. From Menu select Insert->Hyperlink 3. Switch to 'Internet' Tab 4. Check on the 'Web' box 5. Fill up the 'Target' field with: http://en.opensuse.org/Bugs:OOo 6. Click the round Button on the rightside of the 'Target' field, which is 'Target in Document' 7. Wait for minutes to let OOo finish retrieving the website 8. In the popped up 'Target in Document' dialog box, double click Headings->Contents 9. Watch the 'Target' field [Problem] The 'Target' field is then appended with: #Contents|outline The '|outline' tailed is redundant and lead the link failing to work.
In addition, actually, OOo appended improper '|xxx' for other elements as well, such as: http://URL#TextFrames|frame http://URL#Graphics|graphic http://URL#Sections|region
Roughly said, this is due to the fact that you can do more with hyperlinks inside of a Writer document than what is allowed in HTML. In the same time, the dialog cannot know if you intend to refer to an HTML document or inside of Writer. Explanation: in HTML the "#" as target inside of the page refers to named anchor using "name" or "title". Inside of OOo, objects which in the HTML code might not have a name will get one automatically (Tables, Graphics, here the "Contents" which is a heading...). Thus such references like target of type "outline" with name "Contents" work only in Writer. Furthermore: both URL forms http://en.opensuse.org/Bugs:OOo#Contents|outline http://en.opensuse.org/Bugs:OOo#Contents Can only target to: http://en.opensuse.org/Bugs:OOo because there is, in this HTML page, no #Contents but just a text formatted as heading 2 which has neither a name nor a title. So this is a WONTFIX or at lieast a duplicate of issue 19690. *** This issue has been marked as a duplicate of 19690 ***
Closed