Skip to content

Commit

Permalink
Use meta refresh to redirect QRA-EQR to DFID-BDICD on GitHub Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyfok committed Jan 10, 2024
1 parent 8526926 commit 7e955c5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/deploy-preview-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,24 @@ jobs:
sed -i 's#"/\([^"]\+\)\.php#"\1.html#g' *.html
sed -i 's#"/\([^"]\+\)\.php#"../\1.html#g' */*.html
- name: Set up redirects for QRA-EQR to DFID-BDICD
run: |
mkdir -p public/QRA-EQR
for lang in en eng fr; do cat <<EOF > public/QRA-EQR/index-${lang}.php
<!DOCTYPE html>
<html>
<head>
<title>Redirecting...</title>
<meta charset="utf-8" />
<meta http-equiv="refresh" content="1; url=../DFID-BDICD/index-${lang:0:2}.php" />
</head>
<body>
<p>Redirecting...</p>
</body>
</html>
EOF
done
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
Expand Down

0 comments on commit 7e955c5

Please sign in to comment.