-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugfix/fix trailing slashes by removing whitenoise #359
Bugfix/fix trailing slashes by removing whitenoise #359
Conversation
{% endcompress %} | ||
{% else %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -9,7 +9,7 @@ | |||
<div class="govuk-grid-column-two-thirds"> | |||
<h1 class="govuk-heading-xl">Ask any question of documents in your Redbox</h1> | |||
<p class="govuk-body-l">Use Artificial Intelligence (AI) to get insights from your personal document set. You can use up to, and including, Official Sensitive documents.</p> | |||
<p class="govuk-body">If you have an account, please <a class="govuk-link" href="/sign-in">sign in</a> to get started</p> | |||
<p class="govuk-body">If you have an account, please <a class="govuk-link" href="{{url('sign-in')}}">sign in</a> to get started</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've not seen this function syntax in jinja templates before. What is it and is it safe going forward?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a django/jinja2 syntax for constructing urls from the url slug. This is the better way of doing it, you can't get links that go nowhere doing it this way
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it the same or different to this?
# SASS Compilation (if not using django-compressor) | ||
|
||
`npm install -g sass` | ||
`sass style.scss style.css -w` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like a bad idea to have, at this point, a third nested level of README
.
This seems to work the opposite way around -- I go to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Context
Whitenoise seems to be caching the pages at a single url and not respecting the trailing_slash setting. We don't really need whitenoise locally so we can just remove it.
Changes proposed in this pull request
Guidance to review
/documents
and see that you get redirected to/documents/
Relevant links
Things to check