Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit c3e7451

Browse files
Fix issue with urlencoded user handles
1 parent 0685476 commit c3e7451

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/profile/profile.routes.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ import angular from 'angular'
2525
controller: 'ProfileCtrl as profileVm',
2626
resolve: {
2727
userHandle: ['$stateParams', function($stateParams) {
28+
if (decodeURIComponent($stateParams.userHandle) !== $stateParams.userHandle) {
29+
return decodeURIComponent($stateParams.userHandle)
30+
}
2831
return $stateParams.userHandle
2932
}],
3033
profile: ['userHandle', 'ProfileService', function(userHandle, ProfileService) {

0 commit comments

Comments
 (0)