Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

how to redirect all the profile page links to same url type

for example when you click your nickname in a discussion, (as an author or a commenter just in a discussion) it will take you to domain.com/profile/1/nickname ,, but when you click your nickname in the navigation menu (it is the profile button) it will take you to domain.com/profile/nickname ,, , but just one of them should be avaliable in my site , why i need to do that ?, i put some html widgets to users profile pages (with pocket widget) these widgets detect the page url, to work properly i need disable one of these url, how can i do that ? any ideaa ?

Comments

  • You can use Routes to achieve what you are asking. It's a "simple" matter of using Regular Expressions to route the call to one URL towards another.

    I'm not sure what you are trying to achieve, would you be able to provide some examples?

  • kadrikadri New
    edited June 2013

    i just want that only this type: domain.com/profile/nickname being used in my site

  • kadrikadri New
    edited June 2013

    by the way it differ in some theme, there are certain themes in which i achieve what i want, means that the profile page url stay same in some themes, but i need an exact solution

  • it's still not clear what you want to do.

    state exactly what you want with some pics and where you want to go.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • edited June 2013

    Correction

    Scratch my previous answer, I think I misunderstood the question, I got tricked by the "redirecting" keyword. Are you trying to display same link everywhere? That is, all the three link above would be the same? In such case, you have to modify the theme and the modules that output them, and format them the way you like.

  • Are you trying to display same link everywhere? That is, all the three link above would be the same?

    yes exactly that,
    ok i will check the theme now

  • edited June 2013

    I see what you are saying and I agree with @businessdad. I also agree that all profile links should be consistent with one link format on forums to avoid confusion, search engine indexing issues, and so on. With the default Vanilla theme in 2.1, it seems that all profile links are consistent, but it may be different with Vanilla 2.0.

    Add Pages to Vanilla with the Basic Pages app

Sign In or Register to comment.