simplify href calculation