Question:
Why am I experiencing unwanted redirection to “https://www.aaabandrentals.com/howitworks” when users attempt to access the “https://www.aaabandrentals.com/master-intrument-rentals” dynamic list page directly via URL?
Product:
Wix Editor
What are you trying to achieve:
I want users to be able to directly access the “/master-instrument-rentals” page on my website by typing in the URL or clicking a direct link without being redirected to another page (“/howitworks”). This issue only occurs when accessing the page directly; navigating through the website’s UI works fine.
What have you already tried:
- I’ve checked for any active redirection rules in the SEO and page settings but found none.
- I implemented a custom router using Velo to explicitly handle the URL for the “master-instrument-rentals” page:
import {ok, notFound, redirect} from 'wix-router';
export function myRouter(request) {
if (request.path[0] === "master-instrument-rentals") {
return Promise.resolve(redirect("/master-instrument-rentals"));
} else {
return Promise.resolve(ok());
}
}
Despite this, the issue persists.
3. I’ve reviewed the forum and Wix support articles regarding URL redirection and custom routers but haven’t found a scenario that matches mine.
Additional information:
- The redirection happens only when trying to access the URL directly or through direct links.
- This behavior is consistent across different browsers, devices, and in incognito mode, indicating it’s not a browser cache issue.
Any help in resolving this would be greatly appreciated as it impacts user navigation and experience on our site.