Skip to content

Commit 7acee14

Browse files
authored
Merge pull request #386 from UUDigitalHumanitieslab/feature/reliable-routes
Reliable redirect, shorter login duration
2 parents 29dbf48 + 315c2c0 commit 7acee14

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

frontend/src/aspects/navigation.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ history.once('route', () => {
2424
uploadSourceForm.setHeight(availableHeight);
2525
});
2626

27-
mainRouter.on('route:home', () => mainRouter.navigate('search'));
27+
mainRouter.on('route:home', () => mainRouter.navigate('search', {
28+
trigger: true,
29+
replace: true,
30+
}));
2831
mainRouter.on('route:search', () => userFsm.handle('search'));
2932
mainRouter.on('route:upload', () => userFsm.handle('upload'));
3033
mainRouter.on('route:explore', () => userFsm.handle('explore'));

frontend/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import './aspects/authentication';
1515
import './aspects/registration';
1616
import './aspects/exploration';
1717

18+
user.fetch();
1819
when(ready, i18nPromise).done(function () {
19-
user.fetch();
2020
let success = history.start({
2121
root: baseUrl,
2222
pushState: true,

frontend/src/user/registration/confirm-registration-template.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<form class="box is-narrow-modal-form">
44
{{#if isConfirmed}}
55
<h3 class="title is-3">Confirmation complete</h3>
6-
<p>Thank you for signing up. You can now <a href='arrive'>login</a></p>
6+
<p>Thank you for signing up. You can now <a href='search'>login</a></p>
77
{{/if}}
88

99
{{#if wasNotFound}}

0 commit comments

Comments
 (0)