parse extensions of portal and replace parameters