Change pub share url to use base url of server instead of predefined base for cross-server compatibility