Yes, that's because relative URLs only work if the entire page view was created within Q2A. They won't work with external access to the Q2A code, so I'd recommend sticking with absolute URLs, or passing '' for the third parameter to qa_path(...) and adding on the prefix yourself.