[Pkg-haskell-maintainers] Bug#687293: dwww: HTML link miss to absolute path /usr/share/doc/.

Robert Luberda robert at debian.org
Sun Oct 7 18:45:45 UTC 2012


reassign 687293 libghc-hakyll-doc 3.2.7.2-1
tags 687293 -patch
retitle 687293 Please make links inside <a href= tags relative

> Package: dwww
> Version: 1.11.8
> Severity: normal
> Tags: patch
> 

Hi,


> Some document packages link to absolute path /usr/share/doc/.

They probably shouldn't do this, since it make it impossible to view the
pages in other ways than using direct file:// links (e.g accessing the
pages through dwww or http://localhost/doc/ won't work.)


> But the link is miss on http://localhost/cgi-bin/dwww/, because dwww return raw html file.
> Example. libghc-hakyll-doc package has /usr/share/doc/libghc-hakyll-doc/html/Hakyll-Web-Blaze.html.
> But http://localhost/cgi-bin/dwww/usr/share/doc/libghc-hakyll-doc/html/Hakyll-Web-Blaze.html
> has link to http://localhost/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html.

It would be better if the Hakyll-Web-Blaze.html links could be changed
(together with other similar ones inside the package) into the relative
ones, i.e. ../../ghc-doc/html/.... instead of implementing work-arounds
in dwww, that's why I'm reassigning the bug.


> 
> How about this patch that change /usr/share/doc/ to /cgi-bin/dwww/usr/share/doc/ ?

As I wrote above, I don't think implementing such kind of work-around is
a good idea. Besides, the patch will most probably change for example
output of
http://localhost/cgi-bin/dwww/usr/share/doc/debian-policy/policy.html/ch-docs.html#s12.3
.

Regards,
robert



More information about the Pkg-haskell-maintainers mailing list