Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c3e7451

Browse files
committedJul 7, 2017
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

+3
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)
This repository has been archived.