Skip to content

Commit

Permalink
Escape wildcard in paths
Browse files Browse the repository at this point in the history
Both serviceworker.js and manifest.json load even if the '.' character is replaced by any other character. This regex fix will prevent that.
  • Loading branch information
stacks13 committed Jun 22, 2020
1 parent 0d4488a commit 991a6ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pwa/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Serve up serviceworker.js and manifest.json at the root
urlpatterns = [
url('^serviceworker.js$', service_worker, name='serviceworker'),
url('^manifest.json$', manifest, name='manifest'),
url(r'^serviceworker\.js$', service_worker, name='serviceworker'),
url(r'^manifest\.json$', manifest, name='manifest'),
url('^offline/$', offline, name='offline')
]

0 comments on commit 991a6ee

Please sign in to comment.