On my search results page I am testing to see if there is only one result and if so redirecting the user to that result page using the redirect tag.
However, even though the path I am redirecting to is absolute it seems to be handled as relative.
For example - the path I am redirecting to:
http://myurl.com/path/to/page
Once the redirect is complete the address bar shows:
http://myurl.com/http://myurl.com/path/to/page
This does still show the right page content, but clearly isn't the right URL.
The code i am using is:
{redirect="{url_title_path='store/product'}"}.
When placed into a template alone {url_title_path='store/product'} writes out myurl.com/path/to/page and indeed this very same tag works perfectly when applied to an anchor (a) tag.
Any advise on how to resolve this much appreciated.