Skip to content

Commit 7b3d6bc

Browse files
committed
adjustments
1 parent 2e13ac8 commit 7b3d6bc

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

src/Server/Coderr.Server.Web/ClientApp/components/home/home.vue.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ <h3>Application configuration (admin only)</h3>
4848
</p>
4949
</div>
5050
<div class="card-footer">
51-
<a class="btn btn-primary" :href="`/manage/application/${appId}`">
51+
<a class="btn btn-primary" :href="`manage/application/${appId}`">
5252
Application settings
5353
</a>
5454
</div>
@@ -62,7 +62,7 @@ <h3>Invite co-workers (admin only)</h3>
6262
<p>To invite co-workers, use the Cog wheel (<i class="fa fa-cog text-primary"></i>) found in top right menu, select one of your applications and then use the "Security" tab.</p>
6363
</div>
6464
<div class="card-footer">
65-
<a class="btn btn-primary" :href="`/manage/application/${appId}/security`">
65+
<a class="btn btn-primary" :href="`manage/application/${appId}/security`">
6666
Invite co-workers
6767
</a>
6868
</div>

src/Server/Coderr.Server.Web/ClientApp/components/home/navmenu/navmenu.ts

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export default class NavMenuComponent extends Vue {
7979
}
8080
});
8181
PubSubService.Instance.subscribe(MenuApi.MessagingTopics.SetApplication, ctx => {
82+
console.log('SET', ctx.message)
8283
var msg = <MenuApi.SetApplication>ctx.message.body;
8384
this.changeApplication(msg.applicationId);
8485
});
@@ -110,7 +111,15 @@ export default class NavMenuComponent extends Vue {
110111
}
111112
}
112113

113-
if (paramCount === 1 && currentRoute.params.hasOwnProperty('applicationId')) {
114+
if (currentRoute.path.indexOf('/manage/') !== -1) {
115+
if (applicationId) {
116+
const route = { name: 'manageAppSettings', params: { applicationId: applicationId.toString() } };
117+
this.$router.push(route);
118+
} else {
119+
const route = { name: 'manageHome' };
120+
this.$router.push(route);
121+
}
122+
} else if (paramCount === 1 && currentRoute.params.hasOwnProperty('applicationId')) {
114123
if (applicationId == null) {
115124
this.$router.push({ name: currentRoute.name });
116125
this.publishApplicationChanged(null);
@@ -119,21 +128,11 @@ export default class NavMenuComponent extends Vue {
119128
this.publishApplicationChanged(applicationId);
120129
}
121130
return;
122-
}
123-
124-
if (currentRoute.path.indexOf('/discover') === 0) {
131+
} else if (currentRoute.path.indexOf('/discover') === 0) {
125132
this.$router.push({ name: 'discover', params: { applicationId: applicationId.toString() } });
126133
} else if (currentRoute.path.indexOf('/analyze') === 0) {
127134
this.$router.push({ name: 'analyzeHome', params: { applicationId: applicationId.toString() } });
128-
} else if (currentRoute.path.indexOf('/manage/') !== -1) {
129-
if (applicationId) {
130-
const route = { name: 'manageAppSettings', params: { applicationId: applicationId.toString() } };
131-
this.$router.push(route);
132-
} else {
133-
const route = { name: 'manageHome' };
134-
this.$router.push(route);
135-
}
136-
} else {
135+
} else {
137136
const route = { name: currentRoute.name, params: { applicationId: applicationId.toString() } };
138137
this.$router.push(route);
139138
}

src/Server/Coderr.Server.Web/ClientApp/components/home/navmenu/navmenu.vue.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
</router-link>
6565
</li>
6666
<li class="nav-item">
67-
<a href="/account/logout" class="nav-link" title="Log out">
67+
<a href="account/logout/" class="nav-link" title="Log out">
6868
<i class="fa fa-power-off"></i>
6969
</a>
7070
</li>

src/Server/Coderr.Server.Web/Controllers/AccountController.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ public async Task<ActionResult> Accept(AcceptViewModel model)
112112

113113

114114
await SignInAsync(identity);
115-
return RedirectToAction("UpdateSession", new { returnUrl = "/#/account/accepted" });
115+
var url = Url.Content("~/");
116+
return RedirectToAction("UpdateSession", new {returnUrl = url});
116117
}
117118

118119
[HttpGet("account/activate/{id}")]

0 commit comments

Comments
 (0)