PluginProbe
Yatra – Travel Booking & Tour Operator Software / 3.0.16
Yatra – Travel Booking & Tour Operator Software v3.0.16
3.0.16 3.0.15 3.0.14 3.0.14.1 3.0.14.2 3.0.12 3.0.13 3.0.11 3.0.10 3.0.9 3.0.8 3.0.7 3.0.6 3.0.5 3.0.5.1 3.0.4 3.0.3 3.0.2.9 3.0.2.7 3.0.2.8 3.0.2.6 trunk 1.0.0 2.0.0 2.0.1 All 84 releases
← All changes | app/Core/Routing/UrlParser.php +7 -1 3.0.2.8 → 3.0.16 View file →
@@ -43,9 +43,15 @@
43 43
44 44 $request_path = $path;
45 45 }
46 46
47 - return $request_path;
47 + /**
48 + * Normalize the storefront path segment Yatra uses for routing (no leading slash, site subdirectory removed).
49 + * Map custom public URLs onto Yatra paths before {@see PrettyRouteMatcher} runs, e.g. `regions/norway` → `destination/norway`.
50 + *
51 + * @param string $request_path Already normalized relative path or empty string.
52 + */
53 + return (string) apply_filters('yatra_frontend_request_path', $request_path);
48 54 }
49 55
50 56 /**
51 57 * Extract slug from URL path using pattern matching