Compare
Websites
Templates
Store
Pricing
Docs
Blog
Log in
Sign up
How to
Editing
Website Management
Programming
Host a static website on Boomla
Create a hello world app on a page
Modify installed apps
Using the IDE
Serve a request
Embedding scripts
Require a JavaScript module on the server
Extend the contextmenu
Redirect the visitor
Embed an iframe
Accessing query parameters
Run JavaScript in the browser
Restore original uppercase filenames after file upload
Troubleshooting
How it works
API reference
Glossary

Redirect the visitor

  • Set the response file's location string attribute to the desired path,

  • optionally set the response file's statusCode to 3xx (optional).

sjs-4 example

response.attrStr('location', '/');
response.statusCode(301);
Next:
Embed an iframe
1:35
Subscribe to our newsletter!
Product
Sign up Changelog Download Status Pricing Store Terms & Conditions Privacy Policy
Docs
Tutorials How to How it works API reference Glossary
Company
Team Contact