Rank: Member
Groups: Authorized User, Developers Joined: 11/13/2018(UTC) Posts: 23
Thanks: 16 times Was thanked: 1 time(s) in 1 post(s)
|
|
|
|
|
Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
Quote:What are the parameters to redirect an AFID to a specific page? I don't think so we have this feature of redirecting to a specific page with AFID in AC9. Can you please elaborate a bit more in case I am missing something. What steps did you take to get this path with redirect URL? Thanks
|
|
|
|
Rank: Member
Groups: Authorized User, Developers Joined: 11/13/2018(UTC) Posts: 23
Thanks: 16 times Was thanked: 1 time(s) in 1 post(s)
|
We are coming from AC 7.0 so it seems that it worked then, but many of our resellers choose to link to specific products instead of going to the homepage. For example, if our reseller is Crystal Reports centric, and want to point directly to our crystal reports generator, they would use https://www.idautomation...ystal-reports-generator/
|
|
|
|
Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
I think this feature is part of some customization being done in AC7. Can you please confirm if there is some related customizations in AC7?
|
|
|
|
Rank: Member
Groups: Authorized User, Developers Joined: 11/13/2018(UTC) Posts: 23
Thanks: 16 times Was thanked: 1 time(s) in 1 post(s)
|
Looks like we had just added some javascript on the homepage previously that helped the redirect... This was the original code <script language="JavaScript"> <!-- hide
var myURL = 'http://store.idautomation.com/default.asp?Affiliate='; var myQuestionIndex = location.href.indexOf('?'); if (myQuestionIndex > -1){ var myAffiliate = location.href.substr(myQuestionIndex + 1); if (myAffiliate.length > 1){ location.href = myURL + myAffiliate + '&Redir=http://www.idautomation.com/'; } }
// --> </script> <base href="http://www.idautomation.com/" I updated it to the following but all it does is keep adding "afid" to the url in a loop and doesn't recover. Any ideas? <script language="JavaScript"> <!-- hide
var myURL = 'https://www.idautomation.com/Default?afid='; var myQuestionIndex = location.href.indexOf('?'); if (myQuestionIndex > -1){ var myAffiliate = location.href.substr(myQuestionIndex + 1); if (myAffiliate.length > 1){ location.href = myURL + myAffiliate + '&Redir=https://www.idautomation.com/'; } }
// --> </script> <base href="http://www.idautomation.com/"
|
|
|
|
Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
Sorry but I am unable to interpret what is required by this script. But the issue is obvious. Before updating the script, the script actually changing/redirecting the URL from store.idautomation.com to www.idautomation.com and after the updates the script is changing/redirecting the URL from www.idautomation.com to www.idautomation.comThis is the reason that keeps it redirecting to same page.
|
|
|
|
Rank: Member
Groups: Authorized User, Developers Joined: 11/13/2018(UTC) Posts: 23
Thanks: 16 times Was thanked: 1 time(s) in 1 post(s)
|
I'm not a programmer, but that makes sense now that you point it out.
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close