-
-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: use meta tag to redirect externalURLs #778
Conversation
✅ Deploy Preview for hugo-congo ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
Thanks for the PR, but why is this required? Links to external URLs already send you to the correct destination. |
In cases where the users go to the URL directly, the webpage itself does not redirect to the external URL. |
Interesting. I don't see this issue as I always set those pages to not be built to prevent that from happening. I don't think it's good for SEO to have pages that are just redirects. It's much better to be linking to the original content and forming backlinks. Is there a particular reason you still generate output for external URL pages? |
The use case for me is to redirect links which have been migrated to another website. Should this be under another property instead? |
Hmm okay, no that use case is valid and one that I hadn't considered. I don't see any reason why the same parameter couldn't serve both purposes. If you don't need the leaf pages you can tell Hugo not to generate them, but in your use case where you want them, then you can leave them on and have them redirect. I'll accept the PR, although is there a reason you coded this with an |
This is tested and working so I'll merge it in. |
No description provided.