According to | rfc3876], REQUEST_URI is not
a part of the Common Gateway Interface (CGI) specification.  SCRIPT_NAME is
what should be used to create self-referential hyperlinks.

Everything works correctly as currently implemented.
You are asking for a change that
will make URLs more cosmetically appealing when using fossil under a particular
configuration of Apache.  Cosmetics are nice.  But everything works now.  And
to implement this change would probably break other configurations.  I think
it is much better to confirm to standards and work across all platforms than
to try to make the URLs a little shorter when using certain configurations
of Apache.

Apache is widely used, but it is not universal.  The main fossil website
is an example of a website that does not use Apache.
uses a single-file webserver dispatched using inetd and called
| althttpd].