toc links on main pages go to user pages where needed
svn: r9993 original commit: 9b0492e320cf761bd2831fabd64c12e723967092
This commit is contained in:
parent
584258ff25
commit
b47b1682f1
|
@ -335,8 +335,8 @@
|
||||||
(define (procedure . str)
|
(define (procedure . str)
|
||||||
(make-element "schemeresult" `("#<procedure:" ,@(decode-content str) ">")))
|
(make-element "schemeresult" `("#<procedure:" ,@(decode-content str) ">")))
|
||||||
|
|
||||||
(define (link url
|
(define (link url
|
||||||
#:underline? [underline? #t]
|
#:underline? [underline? #t]
|
||||||
#:style [style (if underline? #f "plainlink")]
|
#:style [style (if underline? #f "plainlink")]
|
||||||
. str)
|
. str)
|
||||||
(make-element (make-target-url url style)
|
(make-element (make-target-url url style)
|
||||||
|
|
|
@ -27,10 +27,12 @@ function SetPLTRoot(ver, relative) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// adding index.html works because of the above
|
// adding index.html works because of the above
|
||||||
function GotoPLTRoot(ver) {
|
function GotoPLTRoot(ver, relative) {
|
||||||
var u = GetCookie("PLT_Root."+ver);
|
var u = GetCookie("PLT_Root."+ver);
|
||||||
if (u == null) return true; // no cookie: use plain up link
|
if (u == null) return true; // no cookie: use plain up link
|
||||||
location = u + "index.html";
|
// the relative path is optional, default goes to the toplevel start page
|
||||||
|
if (!relative) relative = "index.html";
|
||||||
|
location = u + relative;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user