Bug with deployed backlinks - @id: self in form
Branch https://git.startinblox.com/djangoldp-packages/djangoldp/tree/196-backlinks-support has a functioning version of backlinks, it's deployed on test1.startinblox.com and test2.startinblox.com, using Sib-Core@0.9
This is working well locally but on test1.startinblox.com I'm having some issues
To reproduce:
- Login to test1.startinblox.com
- Join a local circle
- For me it sends in the request:
{'@id': 'self', ...}
.. the back-end reads 'self' as a distant user, so creates this user and adds them to the circle
Debugging this with @clement we found the form sends:
<sib-form
class="button text-bold text-uppercase reversed button-blue bordered with-icon icon-arrow-right-circle flex"
data-src="https://api.test1.startinblox.com/circles/11/members/"
fields="user.@id"
label-user.@id=""
value-user.@id="self"
widget-user.@id="sib-form-hidden"
hd-inherit-bind-user2input="input[name='user.@id']"
submit-button="Rejoindre"
></sib-form>
Adding console logs to hd-inherit-bind-user2input (https://git.startinblox.com/applications/sib-app/blob/master/src/scripts/index.js#L28) it logs the correct user id, but this doesn't seem to replace the value
I tried changing the form not to use '@' in the attribute names (framework/sib-core#242 (closed)), but this resulted in the incorrect form being sent. The fact that it works locally suggests to me a backend source