<?php
$GLOBALS['TSFE']->config['config']['linkVars'] .= ',foo';
$_GET['foo'] = 'bar';
$GLOBALS['TSFE']->calculateLinkVars();