On 23 November 2015 at 22:59, Ron W <ronw.m...@gmail.com> wrote:
>
>
> On Mon, Nov 23, 2015 at 2:19 PM, Richard Hipp <d...@sqlite.org> wrote:
>>
>> That's all well and good, but Joerg is right - it would be convenient
>> to be able to specify the root of the repository in a hyperlink.  I've
>> pondered making that possible with some bit of magic like
>> "[$ROOT/wcontent]" or "<a href='$ROOT/wcontent'>".  But it seems
>> hackish.
>
>
> Why not use the <base> tag in the generated HTML?
>

Last time I tried using <base> it did not work out very well. Do you
have some idea what is browser support for this tag like? Especially
restricted and terminal-based browsers might be interesting.

More importantly, you might not know what the base is if you are
behind CGI. And the base might become invalid when you save the
generated HTML.

The most reliable thing would be to automagically generate enough ../
so the link points to the root of the repo, and the fossil service
knows what URL it was called by so it can generate those ../ just
fine. Anything else is asking for trouble imho.

This was my major grief with fossil web as well so I gave up on using
it since cross-linking between wiki and source becomes pretty much
impossible.

Thanks

Michal
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to