• [solved] wayfinder + Friendly alias path, alias/ gives wrong links #

  • eerne Reply #1, 2 years, 8 months ago

    Reply
    Hi

    I have a bit a weird behavior with wayfinder:

    with http://mydomain.ch/work everything works as expected
    with http://mydomain.ch/work/ <-- note there is a slash (work/) I get wrong href's

    [~[+id+]~] will output
    http://mydomain.ch/work/work/brand/client instead of
    http://mydomain.ch/work/brand/client

    where is this additional /work coming from? so far it's not a problem though i'd like to understand what is going on.

    eni



    MODx 1.0.0

    Friendly URLs = YES
    Use Friendly aliases = YES
    Use Friendly alias path = YES
    Allow duplicate aliases = NO
    Automatically generate alias = YES


  • cevarief Reply #2, 2 years, 8 months ago

    Reply
    Make sure :

    1. Suffix for friendly URL is set to blank, not slash char 2. .htaccess file is setup correctly to you modx path.


  • eerne Reply #3, 2 years, 8 months ago

    Reply
    yep .htaccess is correctly in place. though i just saw it's version 0.9.6.3

    also suffix is set blank. now i tried with ".html" and things are much clearer now.

    http://mydomain.ch/works
    and
    http://mydomain.ch/works.html is working as expected


    http://mydomain.ch/works/ still goes wrong to /works/works/children.html

    so i guess i go with ".html" for now

    if anything changes after updating to 1.0.0 i'll let you know.

    cheers and thank you

    eni


  • eerne Reply #4, 2 years, 8 months ago

    Reply
    oups, the problem was very simple, relative urls, and i only checked firefox status bar. so either using <base> or properly [(base_url)] solved my problem.

    thanks everyone also in the #modx IRC channel for helping me.

    eni


  • clervius Reply #5, 2 years ago

    Reply
    Okay now I am experiencing a similar problem and though it seems as though you were able to solve yours.. I'm not. My issue is this:

    I've got my site setup and everything, and I'm trying Wayfinder for the first time so I can see whether or not I should replace my old navigation ways to wayfinder. I successfully added to the page that I wanted just to test it. but ...
    - (biggest problem) it doesn't work. The links direct me to what seems to be the alias of the pages and I'm assuming that this is a Friendly URL issue but I'm not sure how to fix.
    - Its ugly. I know there must be some resources out there with directions on how to properly skin this thing. I half-heartedly started to look for something but it seems as though I'm gonna have to jump through a couple hoops while attempting to bungee jump from a hovering helicopter to find something useful. *sigh* any help anyone?


  • gracedman Reply #6, 3 months, 3 weeks ago

    Reply
    I just had the same problem but only on my contact page using SPForm. It turns out it was the Friendly URL Container Suffix setting. It was set to "/" and the Contact form is a container for the response form. That's where the extra "/" was coming from which changed the path to /contact/<menu item> even though I am not using Alias Paths. Setting the suffix to "" seems to have fixed it and does not appear to be creating a problem for children. I don't know if that would still be true of I enabled Alias Path.