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

RM 1.1 Change word in URL

Discussion in 'Resource Manager Support' started by M@rc, Oct 31, 2014.

  1. M@rc

    M@rc Well-Known Member

    Let's say for example, I published a new resource and its URL is - http://domain.com/resources/blah-blah-blah.14/reviews (after leaving a review)

    Is there a way to change "reviews" at the ending of the URL to another word? Can this be achieved with the Route Filter?

  2. Mike

    Mike XenForo Developer Staff Member

    It can be done with a route filter, but you need to match the entire URL (something like resources/{name}/reviews).
    M@rc likes this.
  3. M@rc

    M@rc Well-Known Member

    Route Filter did the job, thanks!
  4. M@rc

    M@rc Well-Known Member

    Turns out I spoke too soon.. I used :

    resources/{name}/reviews to resources/{name}/word

    Let's say I typed in the URL - http://domain.com/resources/blah-blah-blah.14/word (It brings up an error message on the forum). Is that how it works or am I doing something wrong?

    Edited: I found out what I did wrong. I also changed "resources" but in the new URL field I kept "resources".

    What about changing the word "review" in this URL after doing all the above - http://domain.com/resources/blah-blah-blah.14/word#review-10-2646
    Last edited: Oct 31, 2014
  5. Mike

    Mike XenForo Developer Staff Member

    If the reviews tab doesn't have your new URL, then a mistake was made somewhere. I just tried this locally and it worked correctly for me.
  6. M@rc

    M@rc Well-Known Member

    Yeah, I made an error but I edited the post (I used the route filter to change "resources" as well and I didn't use the new word for "resources" when I was trying to make it work). I should have posted again so that you would have seen an alert instead of editing my post, to save you time, sorry about that >.<

    There's one last thing. This is an example URL that links to a review after doing all of the above - http://domain.com/resources/blah-blah-blah.14/word#review-10-2646

    ^ Is it possible to change "review" in this URL? I tried using http://domain.com/resources/blah-blah-blah.14/word#word-10-2646 as a replacement but nothing happened..

    Thanks again for your time.
  7. Mike

    Mike XenForo Developer Staff Member

    No, that can't be changed.
    M@rc likes this.

Share This Page