Added getBaseLink function