> >    Back then the aolserver development team (Mark? George?) thought
> >    this was a problem worth considering, but I never heard about any
> >    resolution. What do you think, should "directoryfile" be applied
> >    first before pattern matching filter functions? I think so.
>
> It's debatable. I think the fact that [ns_conn url] returns a URL that
> has "index.adp" appended is wrong.

Hmm. I don't know. Maybe that is a more "pure" way to look at it, but
it doesn't seem to help anything in practice. In my case I want a filter
function to execute before any ADP is processed. With the current behavior
it almost works, except for index.adp, so I have to call the filter function
manually at the top of an index.adp (but also make sure it hasn't been
called if the user actually typed or was directed to the full URL that
included "index.adp"). Yeah, I could just register the filter function
on /* and look at the URL myself, but why should I have to do that? That's
what the pattern matching is for in the first place. I think the server-side
developer is concerned with what "URL" is finally generated that is going
to satisfy the request, not what the user typed or clicked on. I guess
that is debatable, though.

-Bob

Reply via email to