# No se puede otorgar una insignia personalizada por campo de razón no vacío

**URL:** <https://meta.discourse.org/t/unable-to-grant-custom-badge-for-non-empty-reason-field/82299>\
**Category:** Bug\
**Tags:** subfolder\
**Created:** [6 Marzo, 2018 09:40 UTC](https://meta.discourse.org/t/unable-to-grant-custom-badge-for-non-empty-reason-field/82299 "2018-03-06T09:40:19Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![saurabhp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/saurabhp/32/125182_2.png) [@saurabhp](https://meta.discourse.org/u/saurabhp)\
**Post date:** [31 Diciembre, 2018 08:10 UTC](https://meta.discourse.org/t/unable-to-grant-custom-badge-for-non-empty-reason-field/82299/3 "2018-12-31T08:10:57Z")

</div>

Hi,  
I was able to find the issue. I found it out after seeing that we were returning 404 in the first screenshot instead of 400. We were not taking care of relative\_root\_url while parsing reason of badge.

I have created PR for the same here:  
[https://github.com/discourse/discourse/pull/6836](https://github.com/discourse/discourse/pull/6836)

---

_[View the full topic](https://meta.discourse.org/t/unable-to-grant-custom-badge-for-non-empty-reason-field/82299)._
