-
Notifications
You must be signed in to change notification settings - Fork 115
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
[3.49.15] drf browser showing html tags for url-like fields #5708
Labels
Comments
Are the links clickable in the Browser? That would be the expected result. |
Can you tell curl to request the content type |
The links are not clickable ...
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
Describe the bug
In the DRF browseable rest api fields with values that resemble urls or email addresses are being rendered as html "a" tags.
The fields are rendered normally with curl, so the "accepts" header is probably controlling this inadvertent templating.
To Reproduce
Spin up galaxy_ng from the master branch and open
<prefix>_ui/v1/settings/
or<prefix>/_ui/v2/users/
in a browser window.Expected behavior
Ideally, all fields returned by serializers return the same value+type whether it's via curl or a browser.
Additional context
https://issues.redhat.com/browse/AAH-3363
The text was updated successfully, but these errors were encountered: