1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 Routing question - "/login/login"

Discussion in 'XenForo Questions and Support' started by Cala_Marie, Aug 3, 2013.

  1. Cala_Marie

    Cala_Marie New Member

    Sorry for how trivial this is; I got around two hours of sleep last night and I have the critical thinking skills of a fern now. :sick:

    One of my members pointed out to me that my registration form's URL is website.net/forums/login/login. I'm not quite sure what to do here, considering that you can't outright remove parts of a route with the route filter (at least, I'm 99.9% sure that you can't).

    Does anyone have a suggestion for what I could do? All of my other routes are how I want them to be, for whatever it's worth.
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. Jeremy

    Jeremy XenForo Moderator Staff Member

    You can't remove it, but if you do a route filter you can change it.
    Cala_Marie likes this.
  4. Chris D

    Chris D XenForo Developer Staff Member

    Yeah as @King Kovifor says, this will work:


    It changes the URL from /login/login to /login/signin.

    Replace "signin" with the desired action. The only thing you can't do here is remove the second "login".

    You can, of course, change the first login. e.g. change /login/login to /signin/login if you wanted.

    For consistency sake, you may want to change /register/register also.
    Cala_Marie likes this.
  5. Cala_Marie

    Cala_Marie New Member

    It occurred to me that only in rare cases would a user see the actual login page (it being in a lightbox the majority of the time), and since this was dealing with only the registration form, I set it up to replace login/login with simply register. So far it seems to be working fine.

    Thanks for the input guys! If what I did is actually a very bad idea please let me know. :oops:
  6. Mike

    Mike XenForo Developer Staff Member

    That's a bad idea. You're likely breaking registration entirely.
    Cala_Marie likes this.
  7. Cala_Marie

    Cala_Marie New Member

    Odd, I along with someone else have been able to register a few test accounts since creating that rule. I'll take your word for it though, I've gone ahead and disabled that rule. Thanks.
  8. Chris D

    Chris D XenForo Developer Staff Member

    I would just change the login action with something else as I demonstrated above, but as you've rightly pointed out -- it's not a huge issue.
    Cala_Marie likes this.

Share This Page