GithubHelp home page GithubHelp logo

Comments (4)

der-workfloh avatar der-workfloh commented on July 26, 2024

Hi @jignesh26 ,

which version of the module are you using? The documentation has an example on how to add the rule for the global whitelisting rule related to the homepage. Of course you could also add an additional whitelist entry with the rule value ^/site/?$.

The current release candidate allows to switch to a static approach as an alternative to the regex definition, maybe this could help you to easily setup your desired environment.

from magento2-force-login.

jignesh26 avatar jignesh26 commented on July 26, 2024

Hello @websharp ,

I am using version 2.0.0, I have added the line from the documentation, /?$ to skip the home page but it is allowing all the pages. so as you said i will try to use ^/b2b/?$ but for what about the home page?

I have check the regular expression online to find out any error and found that expression has error. but i am not sure.

Thank you in advance.

from magento2-force-login.

der-workfloh avatar der-workfloh commented on July 26, 2024

Hi @jignesh26,

you said that you are using this rule:

/?$

but you need the start line indicator of regex to force the rule to match only with the homepage, and not with everything ending optionally with end slash character. So the correct rule is:

^/?$

from magento2-force-login.

der-workfloh avatar der-workfloh commented on July 26, 2024

Hi @jignesh26 ,

we released v2.1 of the module. Please try and check if your issue remains. I will close this issue, but if your issue remains, feel free to open again.

from magento2-force-login.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.