Skip to content

Commit 0ffbbac

Browse files
Fix duplicate parameters (#1648)
1 parent 176796b commit 0ffbbac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/controllers/good_job/jobs_controller.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ def destroy
9797
def redirect_to_index
9898
# Redirect to the jobs page, maintaining query parameters. This is
9999
# necessary to support the `?poll=1` parameter that enables live polling.
100-
redirect_to jobs_path(request.query_parameters)
100+
# But `locale` will be set by `default_url_options`.
101+
redirect_to jobs_path(request.query_parameters.except("locale"))
101102
end
102103

103104
private

0 commit comments

Comments
 (0)