Fix two cases in the `diagrams` tool where the URL linking options would not be set for the current path