JSFiddle - React, Tailwind, and code Playground
by kkdaily
JavaScript
const urlParams = new URLSearchParams(window.location.search);
const redirectUrl = urlParams.get('next');
if (redirectUrl) {
urlEncodedData += `&next=${redirectUrl}`;
}
by kkdaily
const urlParams = new URLSearchParams(window.location.search);
const redirectUrl = urlParams.get('next');
if (redirectUrl) {
urlEncodedData += `&next=${redirectUrl}`;
}