Skip to content

fix: Don't redirect user to the login page when logging in#6570

Merged
rjsparks merged 3 commits intoietf-tools:mainfrom
pselkirk:fix-5876
Nov 5, 2023
Merged

fix: Don't redirect user to the login page when logging in#6570
rjsparks merged 3 commits intoietf-tools:mainfrom
pselkirk:fix-5876

Conversation

@pselkirk
Copy link
Copy Markdown
Contributor

@pselkirk pselkirk commented Nov 1, 2023

Fixes #5876.

@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 1, 2023

Codecov Report

Merging #6570 (ae986d2) into main (f6a2d8c) will increase coverage by 0.14%.
Report is 52 commits behind head on main.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #6570      +/-   ##
==========================================
+ Coverage   88.70%   88.85%   +0.14%     
==========================================
  Files         290      284       -6     
  Lines       40440    40253     -187     
==========================================
- Hits        35874    35767     -107     
+ Misses       4566     4486      -80     
Files Coverage Δ
ietf/doc/templatetags/ietf_filters.py 87.16% <100.00%> (ø)
ietf/doc/views_conflict_review.py 97.05% <100.00%> (-0.07%) ⬇️

... and 16 files with indirect coverage changes

Copy link
Copy Markdown
Member

@jennifer-richards jennifer-richards left a comment

Choose a reason for hiding this comment

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

I think this'll solve the bug, but I'm a little worried about the heavy-handedness of str.replace() for the task. I'd feel better if it were restricted to a prefix. Will the original /accounts/logout removal still work if it's rephrased as a prefix?

Comment thread ietf/doc/templatetags/ietf_filters.py Outdated
…e/recode accordingly

Also test with a non-trivial redirect target.
@pselkirk
Copy link
Copy Markdown
Contributor Author

pselkirk commented Nov 2, 2023

I'm not overly worried about abuse potential, but since we're really just going from stripping a suffix to stripping a prefix, I went back to your style of filter.

@rjsparks rjsparks merged commit a3b4162 into ietf-tools:main Nov 5, 2023
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sign in link issues

3 participants