Skip to content

Commit

Permalink
Use absolute URLs in redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
ankith26 committed May 11, 2024
1 parent 38ec03f commit be027bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions portal/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ app.post("/webhooks/update", async (req, res) => {
});

app.get("/", (req, res) => {
res.redirect("discord");
res.redirect(`${config.BASE_URL}/discord`);
});

app.get("/discord", (req, res) => {
Expand Down Expand Up @@ -126,7 +126,7 @@ app.get("/discord/callback", async (req, res) => {

req.session.discordId = user.id;

res.redirect("../cas");
res.redirect(`${config.BASE_URL}/cas`);
});

const CAS = require("cas");
Expand Down

0 comments on commit be027bd

Please sign in to comment.