From 597f6c4876bd9a1f077d9214678f4768ab5ca67f Mon Sep 17 00:00:00 2001 From: "chris.double" Date: Thu, 2 Feb 2006 22:26:23 +0000 Subject: [PATCH] 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. --- contrib/httpd/inspect-responder.factor | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/contrib/httpd/inspect-responder.factor b/contrib/httpd/inspect-responder.factor index 80b826283c..10d05e58b8 100644 --- a/contrib/httpd/inspect-responder.factor +++ b/contrib/httpd/inspect-responder.factor @@ -10,9 +10,7 @@ kernel lists namespaces sequences ; [ describe ] simple-html-document ; M: general-t browser-link-href - "/responder/inspector/" swap - [ [ http-inspect ] show-final ] curry quot-url - append ; + [ [ http-inspect ] show-final ] curry quot-url ; : inspect-responder ( url -- ) [ global http-inspect ] show-final ;