base tag - submit form doesn't work

Hello everybody :slight_smile:

I’ve created a web context in the designer and sent it to the workflow.

When I run the process and look at the code source of the web page, there is a base tag which is added:

<base href="http://127.0.0.1:8080/_voyager/localhost/9340/2830/13002/" />

When I submit the form, I've got an internal error. However if I modify the URL in the browser url field (I delete the part _voyager/localhost/9340/2830/13002/  )
the workflow works correctly.

I guess the base tag is added to permit to the host to get images, css and js code. But why I can't valide form ?

Thank you
Kind regards
Tenalp

Could you provide a bit more information on this?

You say “When I submit the form, I’ve got an internal error”, but do you get that error in the Browser or in Workflow? Either way, what is the exact error message?

When you remove the tag, you say it works fine, but do you have all the resources in your Web page? (images, css, js, etc.)?

Source code from the Designer live preview:
<!DOCTYPE html>
<html class=“OUTPUT WEB” section=“index” dpi=“96” scale=“1.0”><head><meta http-equiv=“Content-Type” content=“text/html; charset=UTF-8”><link type=“text/css” rel=“stylesheet” href=“css/context_all_styles.css?lm=1441784391485”><link type=“text/css” rel=“stylesheet” href=“css/context_web_styles.css?lm=1441784391485”><link type=“text/css” rel=“stylesheet” href=“css/default.css?lm=1441784391486”><link type=“text/css” rel=“stylesheet” href=“css/style.css?lm=1441784391486”><meta name=“media-single”><meta name=“media-first”><meta name=“media-middle”><meta name=“media-last”></head><body class=“ol_hascaret” style=“display: block;” spellcheck=“false”><div id=“pageCorps”>
<img src=“images/logo.gif”><img src=“images/base_line.gif”>
<div id=“impression”>
<form id=“print” action=“imprimer” method=“get” data-validation-method=“browser”>
<p></p>
<h3>Voulez-vous lancer l’impression des courriers ?<br>
</h3>
<p></p>
<button id=“lancer” value=“Lancer” name=“lancer” type=“submit”>Lancer</button>
</form>
</div>
<img class=“” src=“images/bas_page.gif”>
</div>
<div class=“__ol__dontquery ol_border_helper ol_border_helper_top” style=“position: absolute; z-index: 999998; width: 778px; height: 8px; top: 289.333px; left: 32px;” contenteditable=“false”></div><div class=“__ol__dontquery ol_border_helper ol_border_helper_bottom” style=“position: absolute; z-index: 999998; width: 778px; height: 8px; top: 489.333px; left: 32px;” contenteditable=“false”></div><div class=“__ol__dontquery ol_border_helper ol_border_helper_left” style=“position: absolute; z-index: 999998; width: 8px; height: 208px; top: 289.333px; left: 32px;” contenteditable=“false”></div><div class=“__ol__dontquery ol_border_helper ol_border_helper_right” style=“position: absolute; z-index: 999998; width: 8px; height: 208px; top: 289.333px; left: 802px;” contenteditable=“false”></div></body></html>

Source code from the web page:
<!DOCTYPE html>
<html class=“OUTPUT WEB” section=“index” dpi=“96” scale=“1.0”><head><base href=“http://127.0.0.1:8080/_voyager/localhost/9340/2986/13010/” /><meta http-equiv=“Content-Type” content=“text/html; charset=UTF-8”><meta name=“media-single”><meta name=“media-first”><meta name=“media-middle”><meta name=“media-last”><link type=“text/css” rel=“stylesheet” href=“css/context_all_styles.css?lm=1441806294864”><link type=“text/css” rel=“stylesheet” href=“css/context_web_styles.css?lm=1441806294864”><link type=“text/css” rel=“stylesheet” href=“css/default.css?lm=1441806294865”><link type=“text/css” rel=“stylesheet” href=“css/style.css?lm=1441806294865”></head><body style=“display: block;” spellcheck=“false”><div id=“pageCorps”>
<img src=“images/logo.gif”><img src=“images/base_line.gif”>
<div id=“impression”>
<form id=“print” action=“imprimer” method=“get” data-validation-method=“browser”>
<p></p>
<h3>Voulez-vous lancer l’impression des courriers ?<br>
</h3>
<p></p>
<button id=“lancer” value=“Lancer” name=“lancer” type=“submit”>Lancer</button>
</form>
</div>
<img src=“images/bas_page.gif”>
</div>
</body></html>

After submitting the form I get in the browser:

Internal Server Error

Internal server error occured while processing the request

The form action is set to “imprimer”. It should instead point to a URL. Am I right in presuming that when you try it in the live preview, it does nothing at all?

If you run this through the Workflow process, it will try to find a URL named “imprimer” so that’s sure to return an error. The URL should be something like “http://127.0.0.1:8080/imprimer”, which would point to your Workflow Server’s IP and a Workfow process whose HTTP Input action is set to “imprimer”.