Not sure if this is a bug or I've misconfigured. Upon clicking on an ad as anonymous user, I get redirected to: simpleads/redirect/www.google.com instead of to www.google.com.

I have simply modified the example simple ad content type and added a Taxonomy field so not sure how that could have affected it.

Comments

minnur’s picture

Hi, this is known issue. Fixed in dev.
Please see http://drupal.org/node/1392814
Thanks.

aniebel’s picture

Hi minnur, thanks but that didn't resolve the issue for me. Now it's simply trying to redirect to the node page... which, of course is denied since it's anonymous use.

By the way, I LOVE this module! Just eager to get it up and ticking. :)

minnur’s picture

Hi were you able to fix the problem ?

aniebel’s picture

No, sorry. It's now redirecting the the Simplead node page. I have cleared cache. Sorry, I haven't had time to try to troubleshoot yet.

shane birley’s picture

I can confirm this issue. All of the /redirect/### are redirecting internally and not to where the path assigned nor the external URL. I saw this same problem with the Advertisement module some time ago.

minnur’s picture

Please try to add "http://" to your URL's

shane birley’s picture

Changed, cleared cache, doesn't seem to fix the problem. Just for reference, this is the almost identical issue in the advertisement.module - http://drupal.org/node/373065. I don't know if any similar code was re-used, but just in case.

goingbeyond’s picture

I ran into the same issue, cleared cache, no change.
But ... I only see this when logged in as admin.

When logged in with other account (or anonymous) the redirection works as expected.

minnur’s picture

@goingbeyond this is by design. Admins and users with "Administer content" permission can access Ad node directly (easier to edit ads).

goingbeyond’s picture

Yeah, I figured that out before I commented -- was just providing some details in case it helped Shane.

Really appreciate your work on this module by the way. It was almost everything I needed plus more. Thanks!

aniebel’s picture

I am still getting a redirect to the node page even as anonymous with the DEV version. I'm happy to help troubleshoot and can focus on this more next week if that helps.

minnur’s picture

Assigned: Unassigned » minnur
Status: Active » Needs review
minnur’s picture

Version: 7.x-1.7 » 7.x-1.x-dev
aniebel’s picture

minnur, I updated to the latest dev on 4/16 and at first got a few php errors. I discovered that the simpleads_cron() function was duplicated in simpleads.module. I commented that out and got no further errors, cleared cache but still getting redirected to the node edit page.

minnur’s picture

Amy, thank you for testing this.

1. I don't see duplicates of simpleads_cron() in the module. I just tried to install the module and it works for me.
2. By default Admin always gets node page (this simplifies ad edit process), please try click on the ad as anonymous user.

Thank you.

aniebel’s picture

minnur, I am sorry and I forgot about that. YES! It works!!

minnur’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.