So I pretty much can't explain it in the title so don't downvote it because of that.
I have template php files for dates and sharing. 1 file is like this:
I php include it to one of my views to avoid too much clutter, instead of putting it there.
This is how it would look like in the view when the SHARE button is clicked.
the social media icons group is just a tooltip.
However, I rerouted the view to a new url path. So I added a php echo base_url to al the links to maintain the root path. But I'm not sure how to apply with the php include.. so I didn't add any. It still appeared but the share button can't show the tooltip anymore..
edit: added pic for clicked SHARE without the tooltip - rerouted to a different url path