Search code examples
common-lisphunchentoot

Is enough-url function deleted in hunchentoot-1.2.3?


If so, how can i change the following code:

(script-path (tbnl::enough-url (ppcre:regex-replace-all "\\\\" script-name "/") uri-prefix))

thanks!


Solution

  • Maybe you are looking for this?

    CL-USER> (puri:render-uri
              (puri:enough-uri "http://foo.bar.com/baz/blub"
                               "http://foo.bar.com/")
              nil)
    "/baz/blub"