Skip to content

Commit 82cea13

Browse files
committed
Fixing special characters overencoding
1 parent 2f7ac84 commit 82cea13

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

community-app/frontend/src/utils.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ export function shuffle(array)
1919
}
2020

2121
export const showUserProfile = (username, event) => {
22-
router.push({name: 'Personal Profile', params: { username: encodeURIComponent(username) }});
22+
router.push({name: 'Personal Profile', params: { username: encodeURI(username) }});
2323
if (event) event.preventDefault();
2424
}
2525

2626
export const showBusinessProfile = (name, event) => {
27-
router.push({name: 'Business Profile', params: { name: encodeURIComponent(name) }});
27+
router.push({name: 'Business Profile', params: { name: encodeURI(name) }});
2828
if (event) event.preventDefault();
2929
}
3030

3131
export const showEduProfile = (name, event) => {
32-
router.push({name: 'Educational Institution Profile', params: { name: encodeURIComponent(name) }});
32+
router.push({name: 'Educational Institution Profile', params: { name: encodeURI(name) }});
3333
if (event) event.preventDefault();
3434
}
3535

static/.htaccess

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ RewriteRule ^contribution/.*$ https://beta.vvvv.org/contributions/ [R=301,L]
88

99
# Redirect /users/name/ or /user/name/ with or without trailing slash to /people/?p=name
1010
RewriteCond %{REQUEST_URI} ^/users?/([^/]+)/?$
11-
RewriteRule ^ /people/?p=%1 [R=301,NC,B,L]
11+
RewriteRule ^ /people/?p=%1 [R=301,NC,B,L,NE]
1212

1313
# Redirect /peoples/name/ or /people/name/ with or without trailing slash to /people/?p=name
1414
RewriteCond %{REQUEST_URI} ^/peoples?/([^/]+)/?$
15-
RewriteRule ^ /people/?p=%1 [R=301,NC,B,L]
15+
RewriteRule ^ /people/?p=%1 [R=301,NC,B,L,NE]
1616

1717
# Redirect /businesses/name/ or /business/name/ with or without trailing slash to /business/?b=name
1818
RewriteCond %{REQUEST_URI} ^/business(es)?/([^/]+)/?$
19-
RewriteRule ^ /business/?b=%2 [R=301,NC,B,L]
19+
RewriteRule ^ /business/?b=%2 [R=301,NC,B,L,NE]
2020

2121
# Redirect /edu/name/ or /edus/name/ with or without trailing slash to /edu/?e=name
2222
RewriteCond %{REQUEST_URI} ^/edus?/([^/]+)/?$
23-
RewriteRule ^ /edu/?e=%1 [R=301,NC,B,L]
23+
RewriteRule ^ /edu/?e=%1 [R=301,NC,B,L,NE]

0 commit comments

Comments
 (0)