My client is using d6 and views 3. They want to be able to display a box containing a random static image with an internal link to display in the same browser tab or an external link that would display in a new tab. I created a content type with a field to upload an image, a text field to include a url, and (for simplicity's sake) a text field to include the target (either _self or _blank). Then I built a views block to display each image using the 'rewrite the output of this field' option on the image field. The text for the rewrite looks something like this:
<a href="[field_link_value]" [field_target_value]>[field_image]</a>.
The problem I'm having is even when field_target_value has target="_self" in it, views or something is ignoring it and the a tag is always showing up in firebug with target="_blank". Another weird thing is that when I display the page source, the target doesn't appear at all. When you click on the image, it does in fact bring the page up in a different tab as expected.
I've looked in the views code and did not see anything in there that seems to be the cause. There is some custom code and theming on the site but I have not been able to find anything in there either.
Anyone have any clues why or thoughts on the strategy I am trying to use ??