]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/View.pm
view: use '+' instead of '%20' to escape spaces in mailto:
[public-inbox.git] / lib / PublicInbox / View.pm
index aaab3b2a122450b83e26bc1dbdde622c4c75d4d8..07023e814516c40862ed32b0c2c86ebe7ba5f4db 100644 (file)
@@ -117,7 +117,7 @@ sub index_entry {
        my $mhref = "${path}$href/";
 
        # show full message if it's our root message
-       if ($root_anchor ne $id) {
+       if ($root_anchor ne $id || ($level != 0 && !$ctx->{flat})) {
                $fhref = "${path}$href/f/";
                $more_ref = \$more;
        }
@@ -436,7 +436,7 @@ sub headers_to_html_header {
        if ($srch) {
                if ($header_obj->header('In-Reply-To') ||
                    $header_obj->header('References')) {
-                       $rv .= "<a\nhref=\"${upfx}t/\">" .
+                       $rv .= "<a\nhref=\"${upfx}t/#u\">" .
                                "References: [expand]</a>\n";
                }
 
@@ -545,6 +545,7 @@ sub html_footer {
 
        my $cc = uri_escape_utf8(join(',', sort values %cc));
        my $href = "mailto:$to?In-Reply-To=$irt&Cc=${cc}&Subject=$subj";
+       $href =~ s/%20/+/g;
 
        my $srch = $ctx->{srch} if $ctx;
        my $upfx = $full_pfx ? '../' : '../../';