Skip to content

Commit 1f0bf47

Browse files
authored
Merge pull request #79 from HiEventsDev/develop
Fix ticket print URL redirecting to login page
2 parents 73b6b00 + 7039929 commit 1f0bf47

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

frontend/src/api/client.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const BASE_URL = isSsr()
99
const LOGIN_PATH = "/auth/login";
1010
const PREVIOUS_URL_KEY = 'previous_url';
1111

12+
// todo - This isn't scalable, we need to better way to manage this
1213
const ALLOWED_UNAUTHENTICATED_PATHS = [
1314
'auth/login',
1415
'accept-invitation',
@@ -18,7 +19,9 @@ const ALLOWED_UNAUTHENTICATED_PATHS = [
1819
'account/payment',
1920
'checkout',
2021
'/event/',
21-
'widget'
22+
'print',
23+
'/order/',
24+
'widget',
2225
];
2326

2427
export const api = axios.create({

0 commit comments

Comments
 (0)