Modify routes to work with variable for all pages.