What cart version are you using? 1.2.10?
What template - the default or a third-party?
If default template have you modified the template?
How did you upload your logo? via the admin panel or some other way?
It has been my experience since version 1.1.3 that if the logo is uploaded via the admin panel, on the design edit
see this doc links for info and a good video
http://docs.abantecart.com/pages/design/templates/edit.htmlthe header code will use the the store URL that is set in the
admin panel System > settings> store detail
no further coding tweaks are required
If you have altered your coding you can look at the basic coding for the hook, or if a third-party template - contact that developer for assistance.
Otherwise default coding works as you have defined it.