https://bugs.documentfoundation.org/show_bug.cgi?id=95914

            Bug ID: 95914
           Summary: [1] Hyperlink erroneously urlencodes hash chars
                    (Calc/Impress/Writer)
           Product: LibreOffice
           Version: 5.0.2.2 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: trivial
          Priority: medium
         Component: framework
          Assignee: [email protected]
          Reporter: [email protected]

OS: Debian Jessie amd64
LibreOffice version: 5.0.2 (english) installed from jessie-backports
Steps to reproduce:

(for shorter writing, I use abbreviations:
$RIGHTURL="https://www.freevoipdeal.com/calling_rates/#/#letter-N";
$WRONGURL="https://www.freevoipdeal.com/calling_rates/#/%23letter-N";
)

Calc:
1. open Calc
2. enter in A1: =HYPERLINK("$RIGHTURL";"$RIGHTURL")
3. go back to A1 and see it indeed has the correct formula, and that the output
of the cell is $RIGHTURL
4. additionally, hover with mouse over hyperlink, the tooltip says $RIGHTURL.
5. ctrl+click the hyperlink
6. Firefox (well, Iceweasel in my case) opens, the address bar says $WRONGURL
7. see that Firefox doesn't scroll to the "letter-N" section of the page

Impress:
1. open Impress
2. select: Insert -> Hyperlink, type in Target field: $RIGHTURL, choose OK
3. see the hyperlink title is $WRONGURL
4-7. same as Calc 4-7.

Writer:
1. open Writer
2-3. same as Impress step 2-3.
4. additionally, hover with mouse over hyperlink, the tooltip says $WRONGURL.
5. right-click on the hyperlink, choose "Edit Hyperlink"
6. see both Title and Text fields say $WRONGURL
7-9. same as Calc/Impress 5-7.

Note the differences in step 4 (tooltip), only Writer says $WRONGURL.
Also, in Writer/Impress at step 2, when I aditionally put $RIGHTURL in the Text
field (instead of leaving blank), the hyperlink title is $RIGHTURL.

When instead as URL I try http://localhost/### , FF goes to
http://localhost/#%23%23
So it seems only the first # survives unscathed (I guess because there's
already some code to protect such HTML-section-URLs).
Starting Firefox with these URLs as command line argument works fine (scrolls
to section).

I never needed this functionality, so I don't know in which version this bug
appeared.

Regardless, thanks!
Gert

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to