Added dynamic routing by page type.