api: remove trailing slashes of formdata draft URLs (#6931)
This commit is contained in:
parent
8d61f8a015
commit
6533872ce7
|
@ -60,7 +60,8 @@ class MyspaceDirectory(qommon.myspace.MyspaceDirectory):
|
|||
'name': form.formdef.name,
|
||||
'datetime': misc.localstrftime(form.receipt_time)
|
||||
}
|
||||
url = form.get_url()
|
||||
# !!! no trailing slash in the special draft case
|
||||
url = form.get_url().rstrip('/')
|
||||
d = {'title': title,
|
||||
'name': form.formdef.name,
|
||||
'url': url,
|
||||
|
|
Loading…
Reference in New Issue