# Unable to grant custom badge for non-empty reason field

**URL:** <https://meta.discourse.org/t/unable-to-grant-custom-badge-for-non-empty-reason-field/82299>\
**Category:** Bug\
**Tags:** subfolder\
**Created:** [3월 6, 2018, 9: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:** 1

<div class="post-metadata">

**Author:** ![Ivan\_Rapekas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ivan_rapekas/32/248924_2.png) [@Ivan\_Rapekas](https://meta.discourse.org/u/Ivan_Rapekas)\
**Post date:** [3월 6, 2018, 9:40오전 UTC](https://meta.discourse.org/t/unable-to-grant-custom-badge-for-non-empty-reason-field/82299/1 "2018-03-06T09:40:19Z")

</div>

Hi, I checked latest both stable `1.9.3+2` and `test-passed` and realized that custom badge cannot be granted to user if the reason field is not empty.

Steps to reproduce:

1. create a new simple badge using font-awasome icon, without SQL
2. go to admin/users, find desirable user
3. click `Edit badges`
4. select the badge created
5. type a reason (important!) `https://www.cuba-platform.com/discuss/t/redirecting-http-to-https/3977/4`
6. click `Grant`
7. you’ll get an error, see details below in the picture.

If the reason field is empty, there is no error.

My forum is in a subfolder, probably that’s a reason of the fail:

 ![image](https://global.discourse-cdn.com/meta/original/3X/e/0/e02bf06cf7d55a5b1313fdf053bb72cfabbd1eb9.png)

---

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