Skip to content

fix: Use route options when building URLs - #51

Merged
jadefish merged 1 commit into
betafrom
b/fix-rails-route-helper
Dec 8, 2023
Merged

fix: Use route options when building URLs#51
jadefish merged 1 commit into
betafrom
b/fix-rails-route-helper

Conversation

@jadefish

@jadefish jadefish commented Dec 5, 2023

Copy link
Copy Markdown
Contributor

When Rails is present, COPRL should use the Rails route URL options to construct URLs instead of ActionController URL options.

BREAKING CHANGE: action_controller.default_url_options is no longer examined to determine how COPRL should build URLs. If your application relies on this behavior, migrate to routes.default_url_options before upgrading COPRL.

@jadefish
jadefish requested a review from a team December 5, 2023 16:01

@rhetprieto rhetprieto left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, IMO we don't need to keep the old behavior

@jadefish

jadefish commented Dec 5, 2023

Copy link
Copy Markdown
Contributor Author

Looks good, IMO we don't need to keep the old behavior

yeah, agreed. it's a breaking change, but it's going into beta, which is full of those... and the old behavior is confusing. I'll update to only keep the new behavior.

@jadefish
jadefish force-pushed the b/fix-rails-route-helper branch 2 times, most recently from b0cba21 to 0908f14 Compare December 8, 2023 13:59
When Rails is present, COPRL should use the Rails route URL options to
construct URLs instead of ActionController URL options.

BREAKING CHANGE: `action_controller.default_url_options` is no longer
examined to determine how COPRL should build URLs. If your application
relies on this behavior, migrate to `routes.default_url_options` before
upgrading COPRL.
@jadefish
jadefish force-pushed the b/fix-rails-route-helper branch from 0908f14 to c624409 Compare December 8, 2023 14:01
@jadefish
jadefish merged commit 47ef329 into beta Dec 8, 2023
@jadefish
jadefish deleted the b/fix-rails-route-helper branch December 8, 2023 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants