Removing superfluous []s from links