Intercept links and form submissions.