Using relative URLs and passing other parameter in Sync.php