From 689a2c5135d11d1af91a84eb529562167b76c46a Mon Sep 17 00:00:00 2001 From: Harshit Verma Date: Fri, 21 Feb 2025 07:04:31 +0530 Subject: [PATCH] Add instructions to give redirects (#675) * Add instructions to give redirects * Remove extra backtick * add explanation about yourUrl * Replace "yourUrl" with "urlSlug" --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index 700a5b77..2788a07c 100755 --- a/README.md +++ b/README.md @@ -380,3 +380,28 @@ In this section, we will guide you through the steps for creating a new FAQ. 4. **Save and Preview:** * Save the file, then run `jekyll serve` in your terminal to start the local server. Visit `http://localhost:4000` to preview your FAQ. +### How to give redirects? +In this section, we will guide you through the steps for giving a redirect. + +1. **Navigate to the html page from which you want to redirect:** + * In the site main directory, open the html page from which you want user to redirect. + +3. **Javascript based redirect:** + * In the html file use the script: + ``` + + ``` + * This part uses Javascript to immediately set the `window.location.href` to `/urlSlug`, redirecting the user. + +3. **Non-Javascript fallback:** + * In the html file if the Javascript is disabled for the browser use: +``` + +``` + * The `