Skip to content

Remove `action_mailer.default_url_options` override in development

What does this MR do and why?

Developers could use different protocol/host/port in development.

For instance, I use https://gdk.test:3443. I noticed that links in emails point to http://localhost:3000.

This change should make links to be generated based on a developer's configs.

This setting is set by Rails.application.routes.default_url_options = default_url_options in config/initializers/default_url_options.rb

Screenshots or screen recordings

These are strongly recommended to assist reviewers and reduce the time to merge your change.

How to set up and validate locally

https://docs.gitlab.com/ee/development/emails.html#mailer-previews

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Bogdan Denkovych

Merge request reports

Loading