Added rewrite endpoint and altered print links