Adding a helper for params replacement into page.js