Problem of URLs with internal links with ‘base href’

I’ve got a website with includes the following directive in the HEAD section:

<base href="" /> 

Now, I want to create internal links to sections within the page ‘’

<a href="#photos">Photos</a> 

But, instead of linking to ‘’, it links to ‘’.

Any tip to fix this? Thank you.