After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 431190 - (Mel) Internal hyperlinks (anchors) in email don't work
(Mel)
Internal hyperlinks (anchors) in email don't work
Status: RESOLVED FIXED
Product: GtkHtml
Classification: Other
Component: Rendering
3.14.x
Other All
: Normal normal
: ---
Assigned To: gtkhtml-maintainers
Evolution QA team
: 205233 436477 462086 493383 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-04-19 00:01 UTC by Meryl
Modified: 2008-10-31 22:10 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
proposed gtkhtml patch (2.77 KB, patch)
2008-01-15 16:05 UTC, Milan Crha
committed Details | Review
Test email with non-working links (37.08 KB, text/plain)
2008-10-31 21:56 UTC, Miguel
  Details

Description Meryl 2007-04-19 00:01:08 UTC
Please describe the problem:
I hope I've posted this bug in the right place: I'm a Linux baby-stepper so I guessed through some of the filter questions to get me to here. So if this is the wrong place for this bug please move it.

Running Evolution 2.8.1, Gnome 2.16.1, on Ubuntu 6.10.
Internal hyperlinks in email don't work. For example an email with <a href="#specials"&lgt;wonderful specials</a&lgt; will not jump to <a name="specials"&lgt;</a&lgt;.



Steps to reproduce:
1. Create an email with internal hyperlinks
2. send it to Evolution 2.8.1 running Gnome 2.16.1
3. Click on the internal hyperlink and nothing happens


Actual results:
nothing.

Expected results:
internal links should jump to the anchor

Does this happen every time?
yes

Other information:
I found with previous bug reports you were very helpful in addressing bug issues.
I do not know if you liaise with Launchpad or are totally separate but this bug is reported on https://bugs.launchpad.net/evolution/+bug/3546 also but it appears to be unresolved at present.
Comment 1 André Klapper 2007-05-08 16:28:09 UTC
*** Bug 436477 has been marked as a duplicate of this bug. ***
Comment 2 André Klapper 2007-07-31 13:18:22 UTC
*** Bug 462086 has been marked as a duplicate of this bug. ***
Comment 3 André Klapper 2007-11-04 17:31:45 UTC
*** Bug 493383 has been marked as a duplicate of this bug. ***
Comment 4 Miguel 2008-01-09 11:22:43 UTC
Bug is reproducible: internal links do not work on Evolution-

Any planned fix?
Comment 5 abesselievre 2008-01-09 21:48:01 UTC
(In reply to comment #4)
> Bug is reproducible: internal links do not work on Evolution-
> 
> Any planned fix?
> 

It's ok now, just an option i fotget.
thank you miguel.
bye.
Comment 6 Miguel 2008-01-09 23:57:31 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > Bug is reproducible: internal links do not work on Evolution-
> > 
> > Any planned fix?
> > 
> 
> It's ok now, just an option i fotget.
> thank you miguel.
> bye.
> 

Is it? Internal links of the form #1 don't work on 2.12.1...
Comment 7 Meryl 2008-01-10 01:06:50 UTC
I'm now currently running Evolution 2.10.1 Gnome 2.18.1 Ubuntu 7.04 and internal anchor links still do not work. 

I thought I should mention something for the developer to consider here: 
When this bug is fixed, it would be good if there was a built-in on/off option for this function (maybe like the ctrl+i load images option) due to the security problems of links in html spam emails.

Comment 8 Srinivasa Ragavan 2008-01-11 18:54:37 UTC
http://bugzilla.gnome.org/show_bug.cgi?id=436477 has a sample mail attached.
Comment 9 Milan Crha 2008-01-15 16:05:39 UTC
Created attachment 102906 [details] [review]
proposed gtkhtml patch

for gtkhtml;

It didn't look for anchors in IFAME, so it failed. I fixed it for FRAME too.
There is one possible issue here, if you have more emails attached with same anchor name and shown in one view, then it will always found the first of the anchors, regardless in which mail you'll click. It will probably involves some changes in Evolution itself too, to fix this (but I'm just guessing now).
Comment 10 Srinivasa Ragavan 2008-01-16 08:18:22 UTC
Oh Milan, it so awesome. Don't bother about the other thing IMO. 
Comment 11 Milan Crha 2008-01-16 09:55:31 UTC
Committed to trunk. Committed revision 8690.

OK, I do not bother, just remember it as a known possible "issue". We can improve it in case someone will find it ;)
Comment 12 Milan Crha 2008-02-22 10:51:56 UTC
*** Bug 205233 has been marked as a duplicate of this bug. ***
Comment 13 Miguel 2008-10-29 16:56:31 UTC
Does the solution work regardless of the name of the links?

I received an email with links in the format #article1, #article2..., and these internal links do not work.

Running Evolution 2.22.3.1
Comment 14 Milan Crha 2008-10-31 21:43:35 UTC
Yes, the name is irrelevant. Could you attach your test mail, please? The best as "Save as" from Evolution, and stripping the private/sensitive data from there. Thanks in advance.
Comment 15 Miguel 2008-10-31 21:56:39 UTC
Created attachment 121755 [details]
Test email with non-working links

I attach the email with non-working internal links.
Comment 16 Milan Crha 2008-10-31 22:10:14 UTC
Thanks for the quick reply. The problem with your mail is that it's wrongly formatted. There are missing <A name="articleX"></A> tags, which means Evolution (and any other HTML renderer, like Fire Fox) doesn't know where to jump. If I add the "<A name="article1"></A>" (quotes for clarity only) on line 376, column 93 (just before "<font color=...") and import it back to evolution, then the first link works as expected.