Why {{ .Permalink }} for homepage outputs rss xml file?

Hi. I need some rss customization. And if I put this rss code in my config file, home page permalink stops working. Instead of href=https://mypage.com/ it outputs href=https://mypage.com/rss.xml

[outputs]
home = [ "RSS", "HTML"]

[outputFormats]
[outputFormats.RSS]
mediatype = "application/rss+xml"
baseName = "rss"

What would be a good solution for this. Do you think its a problem on my side or is it a bug in hugo?
Thanks

I think it’s the order of output formats you have in that array; switch it.

The first element is the primary output format.

Also, this part should not be needed. The RSS output format is one of the inbuilt ones.

The order did help. Thanks a lot for the help, to all of you.