Skip to content
Snippets Groups Projects
Commit bd005cf9 authored by Florian Spreckelsen's avatar Florian Spreckelsen
Browse files

Merge branch 'f-fix-scrpting-context-root' into 'dev'

F fix scrpting context root

See merge request !140
parents 77192a84 e87453fb
No related branches found
No related tags found
2 merge requests!142REL: Release 0.15.0,!140F fix scrpting context root
Pipeline #55002 passed
...@@ -16,6 +16,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ...@@ -16,6 +16,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed ### ### Fixed ###
* `form_elements.make_scripting_submission_button` respects context root.
### Security ### ### Security ###
### Documentation ### ### Documentation ###
......
...@@ -1634,7 +1634,7 @@ var form_elements = new function () { ...@@ -1634,7 +1634,7 @@ var form_elements = new function () {
this.make_scripting_submission_button = function (script, buttonName) { this.make_scripting_submission_button = function (script, buttonName) {
let button_name = buttonName || "Submit"; let button_name = buttonName || "Submit";
const scripting_caller = $(` const scripting_caller = $(`
<form method="POST" action="/scripting"> <form method="POST" action="${connection.getBasePath()}scripting">
<input type="hidden" name="call" value="${script}"/> <input type="hidden" name="call" value="${script}"/>
<input type="hidden" name="-p0" value=""/> <input type="hidden" name="-p0" value=""/>
<div class="form-group"> <div class="form-group">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment