Skip to content

Remove internal uses of GET-based logout route#8998

Merged
mitchellhenke merged 1 commit intomainfrom
mitchellhenke/delete-sign-outs
Aug 14, 2023
Merged

Remove internal uses of GET-based logout route#8998
mitchellhenke merged 1 commit intomainfrom
mitchellhenke/delete-sign-outs

Conversation

@mitchellhenke
Copy link
Contributor

🛠 Summary of changes

Back in #6436 and based on discussion in this thread, we added a DELETE logout route with the intention of switching usage to it, but never changed over.

This PR switches all of our internal usage to the DELETE form, and adds a config for disabling the usage of the GET route.

changelog: Bug Fixes, Sign Out, Remove internal uses of GET-based logout route
@mitchellhenke mitchellhenke merged commit d03b17c into main Aug 14, 2023
@mitchellhenke mitchellhenke deleted the mitchellhenke/delete-sign-outs branch August 14, 2023 17:36
<%= link_to cancel_link_text, sign_up_cancel_path, method: :get, class: 'usa-button usa-button--unstyled' %>
<% else %>
<%= link_to cancel_link_text, link || return_to_sp_cancel_path %>
<% if defined?(link_method) %>
Copy link
Contributor

Choose a reason for hiding this comment

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

Wonder if this might have been a good candidate for the button_or_link_to helper.

def button_or_link_to(name = nil, options = nil, html_options = nil, &block)

The usa-button--unstyled logic isn't handled there, but (a) maybe it should be or (b) maybe it's fine to apply usa-button--unstyled to a link.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The helper did come up while I was working on it, but it initially seemed like it would be more effort to make the helper work for this case.

Somewhat related, but I'd also like to re-work some of this template too

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.

3 participants