v0.4 - trailing slashes ///
This is a small maintenance release.
It adds a new ENFORCE_TRAILING_SLASH
setting option to control the preview URL behaviour. It defaults to True
to match the previous logic where the trailing slash was enforced. Set it to False
to respect the URLs defined in CLIENT_URLS
# settings.py
WAGTAIL_HEADLESS_PREVIEW = {
# ...
"ENFORCE_TRAILING_SLASH": True, # set to False in order to disable the trailing slash enforcement
}
HEADLESS_PREVIEW_CLIENT_URLS
and HEADLESS_PREVIEW_LIVE
was now removed. You will get a runtime error if you are still using these settings.
What's Changed
- Add setting for enforcing trailing slash for the preview URL and various other tidy ups by @zerolab in #32
Full Changelog: v0.3.0...v0.4.0