× Here you can get community support related to ReDJ.

Rule redirects link that should not redirect

  • bmheck
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 2 weeks ago #2338 by bmheck
Having trouble with a redirect "overriding" a link.

We have a base page for our non-profit event called a "Birdathon". We created a simple redirect so that a user can go directly to the Birdathon page rather than navigating through the main site menu. Here's the rule:

FROM URL: /birdathon
TO URL: http://{siteurl}/index.php?option=com_content&view=article&id=785&Itemid=214
REDIRECT 301, Case N, Req Only Y, Decode Y

On Birdathon page are links to pages on our site describing two of our sponsors. If we NOT publish the redirect above, each of these links goes where it should. But when we publish the redirect, clicking on the link just causes the Birdathon page to refresh. That is, the user does not follow the link but instead it is as if the user entered a URL to match the redirect rule. The URL as shown in the browser does briefly change to the correct one (where the link is supposed to go), but then goes back to the Birdathon page.

You can see this at

www.columbusaudubon.org/index.php?option=com_content&view=article&id=785&Itemid=214

The links are near the bottom of the page under "Birdathon Sponsors". Viewing the links in Page Source shows that they contain the word "birdathon" but not in the form that should match the redirect rule....we think! We have left the redirect published for now.

Any idea what is happening here? Thanks for any ideas.

Please Log in or Create an account to join the conversation.

More
10 years 2 weeks ago #2339 by admin
Hi,
you need to "fix" the rule for the short alias:
From URL: ^/birdathon$

The caret (^ begin with) and the dollar ($ end with) will ensure that the rule matches only that specific short url. Your rule matches with ANY URL with /birdathon inside (and so with sponsors links).

Clear browser cache and try again. The problem should be solved.

Kind regards,
Luigi

Please Log in or Create an account to join the conversation.

  • bmheck
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 5 days ago #2353 by bmheck
Hi Luigi,

Thank you so much for the quick response! I had not realized that the default was a partial match, so your fix took care of the problem. (I applied just after you posted it; just getting around to thanking you now....)

Please Log in or Create an account to join the conversation.

More
10 years 5 days ago #2355 by admin
Thanks for reporting and for any further question you are welcome.

Kind regards,
Luigi

Please Log in or Create an account to join the conversation.

Time to create page: 0.102 seconds