gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
74.73k stars 7.45k forks source link

RSS element link has invalid URL `//DOMAIN.TLD/` #11691

Closed GreenLunar closed 10 months ago

GreenLunar commented 10 months ago

Subject: FTW.LOL

Feed: https://ftw.lol/index.xml

Links:

//ftw.lol/contact/
//ftw.lol/info/
//ftw.lol/legal/notice/
//ftw.lol/legal/privacy/
//ftw.lol/legal/tos/
//ftw.lol/posts/microbin/
//ftw.lol/posts/miniflux/
//ftw.lol/posts/nitter/
//ftw.lol/posts/pingvin/
//ftw.lol/posts/quetre/
//ftw.lol/posts/reddit-blackout/
//ftw.lol/posts/reddit-services/
//ftw.lol/posts/simplytranslate/
//ftw.lol/posts/snikket/
//ftw.lol/services/
//ftw.lol/support/

What version of Hugo are you using (hugo version)?

I don't know. I'm not the admin.

Does this issue reproduce with the latest release?

I don't know.

jmooring commented 10 months ago

Please use the forum (https://discourse.gohugo.io/) for questions and troubleshooting. We prefer to use GitHub for verified bugs and vetted enhancements. Thanks.

GreenLunar commented 10 months ago

Please reopen this issue.

This is a verified bug.

Here is another Hugo website.

Feed: https://erikzaadi.com/index.xml

Links:

//erikzaadi.com/2009/05/06/firstpost/
//erikzaadi.com/2009/05/08/gettingstartedwithtestdrivendevelopment/
//erikzaadi.com/2009/05/14/newbloglayout/
//erikzaadi.com/2009/05/16/personalwebnostalgy/
//erikzaadi.com/2009/05/31/isitreallyworthit/
//erikzaadi.com/2009/07/21/joyofwritingutilities/
//erikzaadi.com/2009/07/24/convertencodingutility/
//erikzaadi.com/2009/07/28/jqueryprintelementplugin/
//erikzaadi.com/2009/08/01/aspdotnetmvc2preview1/
//erikzaadi.com/2009/08/15/githubprojectpages/
//erikzaadi.com/2009/08/21/jquerylateloaderplugin/
//erikzaadi.com/2009/08/28/connectingtomyverywellhiddenartisticside/
//erikzaadi.com/2009/10/06/trustinghttpwwwhotlinkfilescom/
//erikzaadi.com/2009/10/07/installingwindows2008r2onanimacbootcamp/
//erikzaadi.com/2009/10/09/update-jqueryprintelementpluginversion10released/
//erikzaadi.com/2009/10/20/jqueryconsoleplug-in/
//erikzaadi.com/2009/10/27/googleanalyticsdotnet/
//erikzaadi.com/2009/11/17/blogmigrationpart1settingup/
//erikzaadi.com/2009/11/22/blogmigration-part2-temporarypages/
//erikzaadi.com/2009/11/25/blogmigration-part3-exportingfrombloggertoatomsite/
//erikzaadi.com/2009/12/06/blogmigrationpart4connectingwindowslivewritertotheatomsiteblog/
//erikzaadi.com/2009/12/22/aspdotnetmvcexceptionhandlingwithjquery/
//erikzaadi.com/2009/12/26/thebeautyofthedesert/
//erikzaadi.com/2010/01/09/usingmvcusercontrolsfromanothercontroller/
//erikzaadi.com/2010/01/24/workingwithgithubfromwithinacompanyfirewall/
//erikzaadi.com/2010/02/07/jquery141vsdocvisualstudio2008intellisense/
//erikzaadi.com/2010/02/15/update-jqueryprintelementversion11released/
//erikzaadi.com/2010/03/05/compressjavascriptwithgoogleclosurecompilerinvisualstudiowithjquerysupport/
//erikzaadi.com/2010/03/20/jqapiairapplication/
//erikzaadi.com/2010/04/08/hostautomaticupdatableairapplicationsongithub/
//erikzaadi.com/2010/04/16/windowslivewriterworkaroundforatomsite13/
//erikzaadi.com/2010/05/16/atomsitethemessite/
//erikzaadi.com/2010/05/16/windowslivewriterworkaroundforatomsiteplugin14/
//erikzaadi.com/2010/05/23/movingfromwebhost4lifetoarvixe/
//erikzaadi.com/2010/06/20/creatingathemeforatomsiteaquickwalkthrough/
//erikzaadi.com/2010/06/24/usingblueprintcssframeworksavinghttprequests/
//erikzaadi.com/2010/07/04/javajavaforanietdev/
//erikzaadi.com/2010/08/01/startupweekendandroidvimrazorandabitofchirpy/
//erikzaadi.com/2010/09/08/letsopensourcetime/
//erikzaadi.com/2010/11/28/dynamic-pitfalls/
//erikzaadi.com/2010/12/09/readabilityvsubercoolonelinersvsperformance/
//erikzaadi.com/2010/12/28/customersatisfaction/
//erikzaadi.com/2011/02/06/googleurlshortenerapifordotnet/
//erikzaadi.com/2011/02/08/youknowyouareageekwhenyouhaveasiteforyourweddingandevenmorewhenthereisaneastereggatthesiteaswell/
//erikzaadi.com/2011/03/02/installscripttorunaspdotnetmvc3withrazoronnginxataopensuseserver/
//erikzaadi.com/2011/04/20/node-js-much-more-then-a-webserver/
//erikzaadi.com/2011/04/21/node-js-frontend-fu-node-fe-fu/
//erikzaadi.com/2011/06/26/times-they-are-a-changin/
//erikzaadi.com/2011/07/11/making-the-touchpad-work-with-two-finger-swipes-on-ubuntu-10-10-installed-on-a-lenovo-laptop/
//erikzaadi.com/2011/07/18/automating-egged-bus-wifi-connection/
//erikzaadi.com/2011/08/04/the-small-things/
//erikzaadi.com/2011/09/09/connecting-jenkins-to-self-signed-certificated-servers/
//erikzaadi.com/2011/10/02/jenkins-on-nginx-fixing-artifacts-downloading-problem/
//erikzaadi.com/2011/10/23/jenkins-on-nginx-take-2-static-file-handling/
//erikzaadi.com/2011/11/23/startup-weekend-haifa-2011/
//erikzaadi.com/2012/02/28/mv-wordoctopress/
//erikzaadi.com/2012/03/02/blog-now-hosted-on-amazon-s3/
//erikzaadi.com/2012/03/03/the-wedding-dance/
//erikzaadi.com/2012/03/19/auto-installing-vundle-from-your-vimrc/
//erikzaadi.com/2012/04/22/solarized-color-scheme-for-octopress/
//erikzaadi.com/2012/07/03/mocking-python-imports/
//erikzaadi.com/2012/07/08/fixing-thunderbird-crashes-on-load-and-mutt-fails-with-fetched-mail/
//erikzaadi.com/2012/07/16/jquery-compatible-jsonp-with-nginx/
//erikzaadi.com/2012/08/28/one-year-of-linux/
//erikzaadi.com/2012/09/13/inheritance-within-python-unit-tests/
//erikzaadi.com/2012/09/16/using-live-reload-with-octopress/
//erikzaadi.com/2012/10/29/unsubscribing-to-watching-all-repos-in-a-github-organization/
//erikzaadi.com/2012/11/11/installing-bare-boned-ubuntu-using-the-mini-iso/
//erikzaadi.com/2012/12/10/three-amigos-one-tmux/
//erikzaadi.com/2013/03/07/fast-remote-editing-with-vim/
//erikzaadi.com/2013/03/14/auto-auto-reloading-ipython-modules/
//erikzaadi.com/2013/06/23/nose-rapido-a-rapid-feedback-plugin-for-nosetests/
//erikzaadi.com/2013/07/01/fdd-fika-driven-development/
//erikzaadi.com/2013/08/22/return-of-the-mac/
//erikzaadi.com/2013/08/27/assign-an-application-to-all-desktops-in-applescript/
//erikzaadi.com/2013/12/18/cleaning-up-jenkins-jobs/
//erikzaadi.com/2014/06/23/handle-proxy-404-in-nginx/
//erikzaadi.com/2014/06/23/long-time-no-spamming/
//erikzaadi.com/2015/03/05/raspberry-pi-powered-door/
//erikzaadi.com/2015/04/27/s3cmd-is-dead-long-live-s3-cli/
//erikzaadi.com/2015/04/27/two-bots-one-slack/
//erikzaadi.com/2015/10/25/bye-octopress-hello-hugo/
//erikzaadi.com/2015/10/27/cheap-iot-by-hacking-routers/
//erikzaadi.com/2015/10/27/hush-hush-now-logstash/
//erikzaadi.com/2015/10/31/the-distributed-state-of-chatops/
//erikzaadi.com/2015/11/11/getting-parsed-request-bin-bodies/
//erikzaadi.com/2015/11/15/linting-ansible-yaml-in-vim/
//erikzaadi.com/2016/01/09/dummy-guide-to-mac-lan-party-with-team-fortress-2/
//erikzaadi.com/2016/02/11/moving-from-vundle-to-vim-plug/
//erikzaadi.com/2016/03/07/migrating-from-logstash-forwarder-to-beat-filebeat/
//erikzaadi.com/2016/05/08/sane-hubot-help/
//erikzaadi.com/2016/08/24/blazing-fast-zsh-with-antibody/
//erikzaadi.com/2016/12/18/1-conference-2-talks-3-lessons-learned-and-a-whole-lot-of-stickers/
//erikzaadi.com/2017/02/07/why-you-should-be-excited-about-the-groovyness-of-jenkins/
//erikzaadi.com/2017/02/08/the-d-in-blog/
//erikzaadi.com/2017/02/18/make-remote-tmux-sane-with-a-keystroke/
//erikzaadi.com/2017/06/19/tmux-for-multilangual-cli-addicts/
//erikzaadi.com/2017/12/09/sane-versioning-in-nodejs/
//erikzaadi.com/2017/12/19/the-delicate-balance-between-coding-and-managing/
//erikzaadi.com/2019/02/25/linting-helm-charts-in-travis/
//erikzaadi.com/2019/09/29/life-is-short-make-your-ci-blazing-fast/
//erikzaadi.com/2019/09/29/pull-request-etiquette-a-set-of-simple-rules-for-your-code-review/
//erikzaadi.com/2020/02/17/how-to-use-zsh-and-tmuxp-to-speed-up-your-day-to-day-workflow/
//erikzaadi.com/about/
//erikzaadi.com/slides/
GreenLunar commented 10 months ago

We prefer to use Git for verified bugs and vetted enhancements. Thanks.

Me too!

I've a repository of ~1,452,194~ 1,527,952 RSS feeds (Yes, RSS feeds) and apparently all of the invalid URLs that begin with //DOMAIN.TLD/ are running Hugo.

Please undertsand, I don't use this software, hence I advise you to check for yourself.

jmooring commented 10 months ago

This issue is closed. It is not a bug. The built-in RSS template renders absolute URLs:

https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/_default/rss.xml#L63

The Permalink value is derived from the baseURL in the site configuration, the documentation for which explicitly requires protocol:

The absolute URL (protocol, host, path, and trailing slash) of your published site (e.g., https://www.example.org/docs/).

What you are seeing is misconfiguration by site authors, not a bug.

Please use the forum (https://discourse.gohugo.io/) if you have further questions,