Discord OAuth2 Redirect URI says "Invalid OAuth2 redirect_uri"

Hi. I’m having trouble with the redirect_uri of Discord OAuth2 systems.
No matter what I type in the &redirect_uri= query, I always get presented with this screen:


No matter what URL I use, if it has a trailing / at the end if it has http:// or https://, if it leads to any certain route, even if I try to encode the redirect uri to an HTML format, it still doesn’t wanna work.
My current redirect uri is:
https://discordapp.com/oauth2/authorize?client_id=691011743249334333&permissions=8&scope=bot&guild_id=694885901700038656&redirect_uri=https://localhost/callback
although I have tried a million other ways before too, neither of which worked.
(Quick note: if you remove the redirect_uri query parameter, it works beautifully, but, expectedly, doesn’t redirect after success.
This isn’t the first time I need to solve this issue, and I’m having to go to desperate measures, which is writing this article.

Also, setting it in the OAuth2 tab in the Developer page, it doesn’t change anything.
I also want the redirect uri to be slightly different everytime, so that’s why I have to do it in the url, not the oauth2 tab.
Also, it doesn’t matter if the scope is “bot” or “email”, “guilds” etc., neither work.

Well, no one has responded so I don’t really need to continue this thread on this forum anymore.

I’m having the same problem for linekdin

if you use Discord API joine this server and speak with the owner off the plugin NanoNet Discord - https://discord.gg/VAf4NPE