fix: organization url (#3387)

This commit is contained in:
Bhargav
2024-04-30 17:51:01 +05:30
committed by GitHub
parent a70bd69ab5
commit 45cd5aae7b
+4 -2
View File
@@ -81,6 +81,8 @@ export default defineComponent({
methods: {
async ProcessSubscription(s: any, action: string) {
const baseURL = getPath();
const route = this.$router.resolve({ name: "organizations" });
const redirectURI = route.href || baseURL;
await organizationsService
.process_subscription(s, action)
.then((res) => {
@@ -94,9 +96,9 @@ export default defineComponent({
res.data.data.label = res.data.data.name;
useLocalOrganization(res.data.data);
window.location.href = "/organizations";
window.location.href = redirectURI;
} else {
window.location.href = "/organizations";
window.location.href = redirectURI;
}
return res;
})