How to retain relative links in ajax retrieved tab

How to retain relative links in ajax retrieved tab

Hi,

Is there a way to keep the links relative to the directory in which you are loading the tab from?

For instance, I want to load a page in a tab in this directory:   /mydir/
the page I'm loading is found here:    /mydir/mytab

so when I load the page in the tab, the relative links in /mydir/mytab refer to the wrong places because it thinks we're here: /mydir/

I hope that makes sense.
It seems like it wouldn't be too hard to do, just curious if the feature is already available and I've missed it.

Thanks!
Jonathan