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

Redirect in routes not handled by lograge #380

Open
saurori opened this issue Oct 24, 2023 · 0 comments
Open

Redirect in routes not handled by lograge #380

saurori opened this issue Oct 24, 2023 · 0 comments

Comments

@saurori
Copy link

saurori commented Oct 24, 2023

I noticed that calling redirect in routes causes log lines that are not handled by Lograge. For example:

Route:

get '/old-page', to: redirect('/new-page')

Log output:

Redirected to http://localhost:3000/new-page
Completed 301 Moved Permanently in 1ms

The README indicates redirect_to in controllers is hooked by lograge. Is it intentional that redirect in routes is not handled or is it possible for lograge to handle this?

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

No branches or pull requests

1 participant