Qameta Team Blog Posts

Define Default URL for ActiveStorage to fix Mixed Content Error

Using ActiveStorage with external services like AWS S3 for saving and surfing attachments like images is great. The setup is well explained in Active Storage Overview in Ruby on Rails Guides. But if you start using it, you will maybe encounter some problems, which are not that easy to find or debug within production. One of the problems we encountered was a Mixed content related to ActiveStorage. This was not a big problem at first.

Define Canonical URL in a Hugo Theme

Hugo is a static site generator, but links to your site may contain optional params like ref=... which may produce duplicate content for search engines. You can use canonical URL to define, which URL should be used by Google and co. Google has a very detailed description how to consolidate duplicate URLs. If you know Hugo and want just a copy a paste solution, just add this to your head: