EDIT: This really only makes sense if you have modified VaultWiki yourself (hook vault_url_generate)
Have you created plugins anywhere on VaultWiki, or have you enabled any of the following "legacy hooks": postbit_display_start, postbit_display_complete
Something is erasing the URL or resetting $threadinfo - and it would probably be in one of the contentaction hooks.