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

Fix issue with urlencoded user handles #1221

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix issue with urlencoded user handles
  • Loading branch information
ThomasKranitsas committed Jul 7, 2017
commit c3e74510051ea78c42014034c065e6b194b2c6c7
3 changes: 3 additions & 0 deletions app/profile/profile.routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ import angular from 'angular'
controller: 'ProfileCtrl as profileVm',
resolve: {
userHandle: ['$stateParams', function($stateParams) {
if (decodeURIComponent($stateParams.userHandle) !== $stateParams.userHandle) {
return decodeURIComponent($stateParams.userHandle)
}
return $stateParams.userHandle
}],
profile: ['userHandle', 'ProfileService', function(userHandle, ProfileService) {
Expand Down