Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graph URLs are absolute paths. #13

Open
declaresub opened this issue Jul 1, 2015 · 0 comments
Open

Graph URLs are absolute paths. #13

declaresub opened this issue Jul 1, 2015 · 0 comments

Comments

@declaresub
Copy link

The graph URL paths in the html generated by mailgraph.cgi are absolute. This forces contortions to get reverse-proxy to mailgraph behind an admin interface working. A better solution might be to make the URLs relative by changing the code at line 181-185 in mailgraph.cgi from

for my $n (0..$#graphs) {
    print "<h2 id=\"G$n\">$graphs[$n]{title}</h2>\n";
    print "<p><img src=\"$scriptname?${n}-n\" alt=\"mailgraph\"/><br/>\n";
    print "<img src=\"$scriptname?${n}-e\" alt=\"mailgraph\"/></p>\n";
}

to

for my $n (0..$#graphs) {
    print "<h2 id=\"G$n\">$graphs[$n]{title}</h2>\n";
    print "<p><img src=\"?${n}-n\" alt=\"mailgraph\"/><br/>\n";
    print "<img src=\"?${n}-e\" alt=\"mailgraph\"/></p>\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant