+ Start a Discussion
SandrineSandrine 

Button redirecting to Sandbox

Hello,

I have a button, on clicking on this button a page opens it has many lines like the code i pasted below.
The button always redirects to the sandbox or asks for login
I have a code like below on a VF page$
<td width="10"><img src="https://c.eu2.visual.force.com/servlet/servlet.FileDownload?file=015b0000001EF10"  width="10" height="12" 
                                
                                /></td>

It works well in Sandbox, but not on prod. Before it was workign well in prod too.
what can be reason .
It awways redirects to sandbox or asks for login
Best Answer chosen by Sandrine
JustAGirlyGeekJustAGirlyGeek
Hi Sandrine, you should use a relative URL. Try the following instead:
 
<td width="10"><img src="/servlet/servlet.FileDownload?file=015b0000001EF10"  width="10" height="12"
/></td>