ukwa / ukwa-site

Using static site generation for parts of the our site.
Apache License 2.0
0 stars 4 forks source link

Add Netlify redirects so previews work as expected. #31

Closed anjackson closed 2 years ago

anjackson commented 2 years ago

By default, the previews go to /en/, but we use /en/ukwa/ as the homepage, so we want to redirect to that.

Netlify supports redirects in a couple of ways. Simplest is likely to be adding a static/_redirects file, which should get added to the output site as _redirects.

anjackson commented 2 years ago

Needed to use config file so could specify force=true, see https://github.com/ukwa/ukwa-site/commit/730dd770fea12ace82e27f4a385b86381a720e2e#diff-ab8f79b68b7adff7a07db953bf453f3c5aa6ade98d2b1b67d8432b36392489ed