Change inspector responder to use a relative link for generated urls

Previously it hardcoded to the 'inspector' responder. This causes issues 
when the link is generated from within another responder ('help' for 
example). By making it a relative URL it guarantees it'll be run from 
within the correct responder.

cont-responder should eventually be changed so that this is not an 
issue.
darcs
chris.double 2006-02-02 22:26:23 +00:00
parent 130a5a5962
commit 597f6c4876
1 changed files with 1 additions and 3 deletions

View File

@ -10,9 +10,7 @@ kernel lists namespaces sequences ;
[ describe ] simple-html-document ; [ describe ] simple-html-document ;
M: general-t browser-link-href M: general-t browser-link-href
"/responder/inspector/" swap [ [ http-inspect ] show-final ] curry quot-url ;
[ [ http-inspect ] show-final ] curry quot-url
append ;
: inspect-responder ( url -- ) : inspect-responder ( url -- )
[ global http-inspect ] show-final ; [ global http-inspect ] show-final ;