Commit bc7aec85 authored by Tobias Kallauke's avatar Tobias Kallauke
Browse files

Fix page js not loading when locale is in path

parent 50c5c660
......@@ -58,8 +58,8 @@ $(() => {
showAlerts()
});
if (/^\/group\/\d+\/?$/.test(location.pathname))
if (/^(?:\/de|\/en)?\/group\/\d+\/?$/.test(location.pathname))
import('pages/group.ts')
if (/^\/group\/\d+\/consumer\/\d+\/?$/.test(location.pathname))
if (/^(?:\/de|\/en)?\/group\/\d+\/consumer\/\d+\/?$/.test(location.pathname))
import('pages/consumer.ts')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment