Open2
URL 変更なしのシンプルな GAS WEB アプリケーションリダイレクトのコード

前提として REDIRECT_URL
をスクリプトプロパティとしてセットしておく。
REDIRECT_URL
が存在しない場合のエラー処理は書いていない。
code.gs
function doGet(e) {
// スクリプトプロパティからリダイレクト先URLを取得
const scriptProperties = PropertiesService.getScriptProperties();
const redirectUrl = scriptProperties.getProperty('REDIRECT_URL');
// HTMLテンプレートを作成し、URLを埋め込む
const template = HtmlService.createTemplateFromFile('index');
template.redirectUrl = redirectUrl;
return template.evaluate()
.setTitle('リダイレクト中...')
.setXFrameOptionsMode(HtmlService.XFrameOptionsMode.ALLOWALL); // iframe制限を解除
}

index.html
<!DOCTYPE html>
<html>
<head>
<base target="_top">
<meta http-equiv="refresh" content="0; url=<?= redirectUrl ?>">
</head>
<body>
<p>リダイレクト中...</p>
<p>自動的に移動しない場合は <a href="<?= redirectUrl ?>">こちら</a> をクリックしてください。</p>
</body>
</html>