This is the codeAbility Sharing Platform! Learn more about the
codeAbility Sharing Platform
.
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
codeAbility Sharing Platform
Manage
Activity
Members
Labels
Plan
Issues
43
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
development
sharing
codeAbility Sharing Platform
Commits
b04c4d08
Commit
b04c4d08
authored
3 years ago
by
Daniel Crazzolara
Browse files
Options
Downloads
Patches
Plain Diff
Trying to fix faulty navigation
parent
61bd3184
Branches
Branches containing commit
2 merge requests
!71
Merge for September Release
,
!70
Improvement/adapt import to new artemis export
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/webapp/app/core/auth/account.service.ts
+4
-3
4 additions, 3 deletions
src/main/webapp/app/core/auth/account.service.ts
with
4 additions
and
3 deletions
src/main/webapp/app/core/auth/account.service.ts
+
4
−
3
View file @
b04c4d08
...
...
@@ -60,7 +60,7 @@ export class AccountService {
}
if
(
account
)
{
this
.
navigateToStoredUrl
();
this
.
navigateToStoredUrl
()
.
then
(()
=>
this
.
stateStorageService
.
clearUrl
())
;
}
}),
shareReplay
()
...
...
@@ -85,12 +85,13 @@ export class AccountService {
return
this
.
http
.
get
<
Account
>
(
SERVER_API_URL
+
'
api/account
'
);
}
private
navigateToStoredUrl
():
void
{
private
navigateToStoredUrl
():
Promise
<
boolean
>
{
// previousState can be set in the authExpiredInterceptor and in the userRouteAccessService
// if login is successful, go to stored previousState and clear previousState
const
previousUrl
=
this
.
stateStorageService
.
getUrl
();
if
(
previousUrl
)
{
this
.
router
.
navigateByUrl
(
previousUrl
)
.
then
(()
=>
this
.
stateStorageService
.
clearUrl
())
;
return
this
.
router
.
navigateByUrl
(
previousUrl
);
}
return
Promise
.
resolve
(
false
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment