# \[closed\] Friendly URL redirection with query parameters

**URL:** <https://discourse.farcrycore.org/t/closed-friendly-url-redirection-with-query-parameters/399>\
**Category:** bug\
**Created:** [June 2, 2015, 11:32am UTC](https://discourse.farcrycore.org/t/closed-friendly-url-redirection-with-query-parameters/399 "2015-06-02T11:32:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrfelna](https://discourse.farcrycore.org/user_avatar/discourse.farcrycore.org/mrfelna/32/1217_2.png) [@mrfelna](https://discourse.farcrycore.org/u/mrfelna)\
**Post date:** [June 2, 2015, 11:32am UTC](https://discourse.farcrycore.org/t/closed-friendly-url-redirection-with-query-parameters/399/1 "2015-06-02T11:32:27Z")

</div>

I think there’s a slight issue with redirection to default friendly URLs.

If I navigate to `/index.cfm?objectid=B1B6A830-E3AE-11E4-8D66005056A87EDF&x=a.b&y=c.d`, I get redirected to `/test-pages?y=c.d&amp;x=a.b`. The test pages part is right and the query string is almost right but it is using `&amp;` instead of `&`.

I think the `application.fapi.getLink` calls in farFU.cfc:~800 need to add the parameter `ampDelim="&"` to force the use of the correct delimiter.

In case it matters, I am using FarCry 7.0.6. Hopefully this is a an actual bug this time 😄

---

<div class="post-metadata">

**Author:** ![justincarter](https://discourse.farcrycore.org/user_avatar/discourse.farcrycore.org/justincarter/32/1213_2.png) [@justincarter](https://discourse.farcrycore.org/u/justincarter)\
**Post date:** [June 3, 2015, 12:26am UTC](https://discourse.farcrycore.org/t/closed-friendly-url-redirection-with-query-parameters/399/2 "2015-06-03T00:26:09Z")

</div>

Definitely looks like a bug, and I think that fix is correct 🙂

Interestingly, if you remove the “.” characters from your variable values then the problem goes away, although the URL format changes to use the /frienld-url/key1/value1/key2/value2 format instead of query string variables.

---

<div class="post-metadata">

**Author:** ![justincarter](https://discourse.farcrycore.org/user_avatar/discourse.farcrycore.org/justincarter/32/1213_2.png) [@justincarter](https://discourse.farcrycore.org/u/justincarter)\
**Post date:** [June 3, 2015, 12:31am UTC](https://discourse.farcrycore.org/t/closed-friendly-url-redirection-with-query-parameters/399/3 "2015-06-03T00:31:56Z")

</div>

Fix is in p700 and p710:

[https://github.com/farcrycore/core/commit/2889cab4884f7440481e8d1c719d0f1649f8094d](https://github.com/farcrycore/core/commit/2889cab4884f7440481e8d1c719d0f1649f8094d)
