Fix password authentication for links and fix template problems for links by creating a new base layout