Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
funkwhale
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Philipp Wolfer
funkwhale
Commits
8308bc6a
Verified
Commit
8308bc6a
authored
5 years ago
by
Eliot Berriot
Browse files
Options
Downloads
Patches
Plain Diff
Fix #864: Redirect from / to /library when user is logged in
parent
79ced951
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changes/changelog.d/864.enhancement
+1
-0
1 addition, 0 deletions
changes/changelog.d/864.enhancement
front/src/components/Home.vue
+12
-0
12 additions, 0 deletions
front/src/components/Home.vue
with
13 additions
and
0 deletions
changes/changelog.d/864.enhancement
0 → 100644
+
1
−
0
View file @
8308bc6a
Redirect from / to /library when user is logged in (#864)
This diff is collapsed.
Click to expand it.
front/src/components/Home.vue
+
12
−
0
View file @
8308bc6a
...
...
@@ -147,7 +147,19 @@ export default {
let
msg
=
this
.
$pgettext
(
'
Content/Home/List item/Verb
'
,
'
Get quality metadata about your music thanks to <a href="%{ url }" target="_blank">MusicBrainz</a>
'
)
return
this
.
$gettextInterpolate
(
msg
,
{
url
:
this
.
musicbrainzUrl
})
}
},
watch
:
{
'
$store.state.auth.authenticated
'
:
{
handler
(
v
)
{
if
(
v
)
{
console
.
log
(
'
Authenticated, redirecting to /library…
'
)
this
.
$router
.
push
(
'
/library
'
)
}
},
immediate
:
true
}
}
}
</
script
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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