Skip to content

Commit f5fcb8f

Browse files
committed
fix(recently studied): use pure set url
- previously it was including the "/test" or "/learn" part of the url if the user clicked a study mode before 30 seconds elapsed
1 parent 85ac7c2 commit f5fcb8f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/views/SetViewerView.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,11 @@ onMounted(() => {
269269
recentlyStudiedTimeout = window.setTimeout(async () => {
270270
if (!currentSet.value) return;
271271
272+
// construct url from type/ID
273+
const url = `/${route.params.type}/${route.params.id}`;
274+
272275
const recentlyStudiedItem = {
273-
url: route.path,
276+
url,
274277
name: currentSet.value.name,
275278
studiedOn: new Date()
276279
};
@@ -338,4 +341,4 @@ main {
338341
}
339342
}
340343
}
341-
</style>
344+
</style>

0 commit comments

Comments
 (0)