netlify / templates

This is board to showcase templates and boilerplates https://templates.netlify.com
75 stars 63 forks source link

Redirects for site migration #301

Closed hexagoncircle closed 1 year ago

hexagoncircle commented 1 year ago

- Summary

Templates can now be discovered in the Integrations Hub on netlify.com at netlify.com/integrations/templates. Notice had been given on templates.netlify.com that it will be deprecated and redirected to netlify.com. This PR introduces a _redirects file, which gets added to the output directory through a small eleventy config update that will pass the file through to the root.

- Test plan

- Description for the changelog

Adds page redirects to new home for templates on netlify.com

netlify[bot] commented 1 year ago

Deploy Preview for templates ready!

Name Link
Latest commit ac24691099e3efd334a5893bb632dcb35ecfa253
Latest deploy log https://app.netlify.com/sites/templates/deploys/63a4a2846a779e0009cc90a6
Deploy Preview https://deploy-preview-301--templates.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

stephan1echung commented 1 year ago

@MarcL @taty2010 It looks like we'd need to merge these changes to actually test the redirects, but please let us know if we can test redirects differently. Also, would either of you have the bandwidth to review this PR? If not, no worries, we'll go ahead and merge and test, and if it doesn't work as expected, we can revert and troubleshoot.

MarcL commented 1 year ago

@hexagoncircle @stephan1echung - Thanks for doing this.

re: testing - can we not use relative redirects rather than the full domain and then test on a deploy preview? I do this on my own site and it works.

hexagoncircle commented 1 year ago

re: testing - can we not use relative redirects rather than the full domain and then test on a deploy preview?

It does work indeed – Thank you, @MarcL!