We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a2b7d1 commit 5b98d74Copy full SHA for 5b98d74
src/shared/utils/contentful.js
@@ -50,12 +50,14 @@ export function target(baseUrl, item) {
50
* @param {String} item
51
*/
52
export function isActive(baseUrl, item, caller) {
53
- const to = removeTrailingSlash(target(baseUrl, item));
+ let to = removeTrailingSlash(target(baseUrl, item));
54
+ to = to ? to.toLowerCase() : to;
55
56
let location;
57
if (isomorphy.isClientSide()) {
58
location = isAbsolute(to) ? buildUrl(window.location.origin, window.location.pathname)
59
: window.location.pathname;
60
+ location = location.toLowerCase();
61
} else {
62
// TODO: should probably get the current URL from the web framework
63
return false;
0 commit comments