We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5185cc9 commit 82475c2Copy full SHA for 82475c2
rest_framework/templatetags/rest_framework.py
@@ -218,7 +218,7 @@ def format_value(value):
218
return template.render(context)
219
elif isinstance(value, str):
220
if (
221
- (value.startswith('http:') or value.startswith('https:')) and not
+ (value.startswith('http:') or value.startswith('https:') or value.startswith('/')) and not
222
re.search(r'\s', value)
223
):
224
return mark_safe('<a href="{value}">{value}</a>'.format(value=escape(value)))
0 commit comments