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
parent
130a5a5962
commit
597f6c4876
|
@ -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 ;
|
||||||
|
|
Loading…
Reference in New Issue