Add uri parameters to links for dynamic resource states and extracted common link config code