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

Route Changer 1.1.3

Let's you change the name of any URL route.

  1. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Jake Bunce submitted a new resource:

    Route Changer (version 1.1.2) - Let's you change the name of any URL route.

    Read more about this resource...
     
  2. Rob

    Rob Well-Known Member

    What an excellent addition - this should be native functionality!
    Thank you Jake :)
     
    erich37 and dutchbb like this.
  3. Itworx4me

    Itworx4me Well-Known Member

    I have choose to redirect threads to view and it doesn't work. I used forums to content and works like it should.
    Capture.JPG
    Any ideas Jake?
     
  4. Rob

    Rob Well-Known Member

    try something other than 'view', to test
     
  5. mmoore5553

    mmoore5553 Well-Known Member

    curious will this take the word pages off the url.

    myboard.com/pages/actualpagename

    I just want the /pages gone.
     
  6. Rob

    Rob Well-Known Member

    I *think* you could do this on a per page basis only but you can do it for all pages I dont think since the mod doesnt and shouldnt really handle wildcards
     
  7. mmoore5553

    mmoore5553 Well-Known Member

    Oh I want it done for all pages. I do not know the ht access to write to do it.
     
  8. Marocinoh

    Marocinoh Member

    It's work for all words?
    Example: categorie, vue, forum, page, sujet, message, ... ?
     
  9. Itworx4me

    Itworx4me Well-Known Member

    Fixed now. I had tried to create a view route prefix with Jakes old route changer.
     
  10. Floris

    Floris Guest

    Excellent work Jake. Thumbsup.
     
  11. Itworx4me

    Itworx4me Well-Known Member

    Jake it seems that this addon has issues with XenPorta. When I enable your addon it causes this error:
    Can you take a look and see what is causing the issue?

    Thanks,
    Itworx4me
     
    Jake Bunce likes this.
  12. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    That would explain it. This addon won't allow you to overwrite a route that already exists. E.g. you can't change "forums" to "threads" because "threads" already exists in the software. That old addon of mine created a "view" route, so this new addon would then not allow you to assign something else to "view". The code checks for this. It won't give you an error, it just won't work. The same goes for if you were to create a "view" route using this addon and then later you installed an addon that occupied the same route. The result is that this addon would stop applying the conflicting route change.

    I thought about implementing validation of route changes at save time, but it's more complicated than that. I decided it was better to just let bad route changes fail gracefully.
     
  13. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Thank you for reporting this. I can see why it's failing. XenPorta employs a similar "run time route change" as this addon does. Our two addons are overriding each other depending on the execution order. I will look into this and report back soon. In the meantime you need to disable this option in XenPorta to avoid this conflict:

    Screen shot 2012-03-05 at 1.08.21 PM.png

    And note that this addon allows you to change the index route (empty route) like this:

    Screen shot 2012-03-05 at 1.07.49 PM.png

    But it doesn't let you assign something else to the index like XenPorta does.

    I will address this soon.
     
  14. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    You can change the route but not remove it completely. There has to be something to identify the type of page being accessed.
     
  15. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Yes, you can use any words. But in my testing XF does not accept accented characters for routes.
     
    Marocinoh likes this.
  16. Marocinoh

    Marocinoh Member

    Okay, thanks for this information and good job ! :)
     
  17. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    This one has been difficult but I think I've got a solution...

    I will also be adding more fields to allow you to change more routes. I have people wanting to use this addon to translate routes to a different language, so they need more fields.
     
    yavuz and Itworx4me like this.
  18. Itworx4me

    Itworx4me Well-Known Member

    Look forward to your fix.

    Thanks,
    Itworx4me
     
  19. cloferba

    cloferba Member

    this will broke my actual rank on google?
     
  20. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Short answer, no.

    The important routes are automatically redirected when you change them, like "forums" and "threads". That means your rank should be preserved.
     

Share This Page