better move this to the backend Post model as:
```
  def url
       #some fancy url encoding
  end
```
and then through json you can use it directly here as url param.