Skip to content
This repository has been archived by the owner on Feb 5, 2023. It is now read-only.

Commit

Permalink
chore: fix follow card redirect issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Candinya committed Oct 29, 2021
1 parent 1015754 commit 4c8fdf4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/views/Followers.vue
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,10 @@ export default class Followers extends Vue {
}
async toPublicPage(rns: string, ethAddress: string) {
if (rns && config.subDomain.isSubDomainMode) {
window.location.href = '//' + rns + '.' + config.subDomain.rootDomain;
if (rns) {
window.location.href = `//${rns}.${config.subDomain.rootDomain}`;
} else {
await this.$router.push(`/${rns || ethAddress}`);
window.location.href = `//${config.subDomain.rootDomain}/${ethAddress}`;
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/views/Followings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,10 @@ export default class Followings extends Vue {
}
async toPublicPage(rns: string, ethAddress: string) {
if (rns && config.subDomain.isSubDomainMode) {
window.location.href = '//' + rns + '.' + config.subDomain.rootDomain;
if (rns) {
window.location.href = `//${rns}.${config.subDomain.rootDomain}`;
} else {
await this.$router.push(`/${rns || ethAddress}`);
window.location.href = `//${config.subDomain.rootDomain}/${ethAddress}`;
}
}
Expand Down

0 comments on commit 4c8fdf4

Please sign in to comment.