Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused routes for feedback #2631

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

jcoyne
Copy link
Contributor

@jcoyne jcoyne commented Jan 30, 2025

We only need the post route

@@ -21,19 +21,17 @@
<li>
<%= link_to t('.my_account'), "https://mylibrary.stanford.edu/" %>
</li>
<% unless current_page?(feedback_form_path) %>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This path is for a POST route, which never returns HTML. The condition could never be met.

We only need the post route
@jcoyne jcoyne force-pushed the remove_unused_routes branch from 3b54bff to f272bdf Compare January 30, 2025 18:37
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.

1 participant