trying to figure out how to add .type to href of prev, next, and related items