Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 [#4390] Fix URL conversion messing with templates
The previous patch (183a08e) fixed the reported behaviour by making all URLs fully qualified, instead of building relative URLs to the admin if the domain happens to be the same. However, we have some 'URLs' that are template variables and are substituted out by the backend, e.g. '{{ continue_url }}' which got mangled by this patch by taking the current location and using that as the root - the template fragment was being interpreted as a relative URL. This breaks those templates. This patch addresses both cases by just leaving URLs untouched and doing no conversion at all - relative URLs stay literally that (and if they're template fragments, our backend properly resolves them), while absolute URLs (to another form, for example) that are pasted in stay absolute. This leaves real relative URLs ambiguous, but such URLs don't make much sense in Open Forms anyway and we recommend users to always use fully qualified absolute URLs. Backport-of: #4391
- Loading branch information