We are using SXA in one of our projects. We are currently facing an issue with default search url pattern being used by SXA.

SXA search url by default is using '#' in search url. Sample below


Is there a way to change to "?" similar to content search in a non SXA implementation.

Issue with # is that GA is not able to identify it correctly. We need to modify it to use "?". EX:


Is this possible OOTB or needs customization?

1 Answer 1


No, it's not possible at the moment. SXA is using Backbone.js to handle search front-end logic and it's default Backbone.js behaviour to use '#'. Abstracting from SXA it's not an easy task but there are some possibilities like usage of PushState.

We have already discussed this in SXA team but because of complexity this change (replacing '#' with '?') was postponed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.