8000 Fixes #5740 -- Use the correct url when ManifestStaticFilesStorage or similar is used by Pankrat · Pull Request #5993 · django-cms/django-cms · GitHub
[go: up one dir, main page]

Skip to content

Fixes #5740 -- Use the correct url when ManifestStaticFilesStorage or similar is used #5993

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

Merged
merged 4 commits into from
Sep 14, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix static_with_version with ManifestStaticFilesStorage
Fixes #5963.
  • Loading branch information
Sylvain Fankhauser authored and Pankrat committed Jun 19, 2017
commit 763fe803589991a79f907bffa85c211542821553
6 changes: 4 additions & 2 deletions cms/templatetags/cms_static.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,7 @@ def do_static_with_version(parser, token):
class StaticWithVersionNode(StaticNode):

def url(self, context):
url = super(StaticWithVersionNode, self).url(context)
return static_with_version(url)
path = self.path.resolve(context)
path_with_version = static_with_version(path)

return self.handle_simple(path_with_version)
0