Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By f.schneider on
Hi,
I've made a form that generate a csv file on Form::submitForm. It's working well except I've found this at the end of the file :
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="refresh" content="1;url=MySiteUrl" />
<title>Redirecting to ....</title>
</head>
<body>
Redirecting to <a href="MySiteUrl">MySiteUrl</a>.
</body>
</html>
How disable that ?
Thx
Comments
How you are exporting
How you are exporting the values?. you can use
decode_entities(strip_tags(''your_values"));
when returning the value
Hello,
Hello,
I'm just doing this
Like I said before, something after add html (described in previous post) to the end of the generated csv file. I'd like to know how to prevent this ?