Carey Henderson Registered Users
 Ventrian Newbie Posts:8

 |
| 5/28/2009 7:54 AM |
|
Ok, so I have searched the forums. I can't find this particular issue. My apologies if this turns out to be a re-post.
I've installed the news articles module on two portals on our site. On the 'home' portal and a child portal. On the home portal, everything works as it should. I can check the 'secure' box and, when the user clicks the link to the particular article, all is well. if they are logged in, they see the full article. If not logged in, they are redirected.
The issue I'm having is that on the child portal, when the user is logged in, they can see the article. Fine and dandy. But if they are not logged in, the url for the article is stripped of all parameters. It won't redirect them. Every article links right back to the main page on this child portal where the module is installed.
Both modules are set up exactly the same on both the home and the child portal. We do have the Page Blaster module installed, but it actually isn't on that portal. I'm wondering, however, if the Page Blaster module is somehow rewriting the link urls, even though it is not actually on this portal. Because Page Blaster places parameters in the overall site's web.config.
To say the least, I'm stumped. I could use assistance if someone has any ideas.
Thank you in advance. |
|
|
|
|
Scott McCulloch Administrators
 Ventrian Master Posts:17204


 |
| 5/29/2009 6:28 AM |
|
| In settings there is a field underneath permissions on where to redirect users who do not meet the featured role check. Maybe that has not been set on the child portal? |
|
Scott McCulloch Site Administrator |
|
|
Carey Henderson Registered Users
 Ventrian Newbie Posts:8

 |
| 5/29/2009 8:50 AM |
|
Posted By Scott McCulloch on 5/29/2009 6:28 AM In settings there is a field underneath permissions on where to redirect users who do not meet the featured role check. Maybe that has not been set on the child portal?
i'm assuming you mean the role permissions redirects, under "user accounts / user settings" for the child portal. No issues there.
I'm really wondering if it has something do with Page Blaster.
Any way I can further assist in troubleshooting the issue? Whatever info I can provide to help, please let me know. Thank you!
|
|
|
|
|
Scott McCulloch Administrators
 Ventrian Master Posts:17204


 |
| 5/30/2009 3:12 AM |
|
| No, I'm referring to admin options -> security settings -> secure url. This is the url it will redirect to when you fail a role check when viewing a secured article. |
|
Scott McCulloch Site Administrator |
|
|
Carey Henderson Registered Users
 Ventrian Newbie Posts:8

 |
| 6/01/2009 7:53 AM |
|
Posted By Scott McCulloch on 5/30/2009 3:12 AM No, I'm referring to admin options -> security settings -> secure url. This is the url it will redirect to when you fail a role check when viewing a secured article.
Thanks, Scott! Completely missed that one because, I guess, I got a case of the dumbass. :-)
Thank you very much for the help. Squared it up nicely.
|
|
|
|
|
Carey Henderson Registered Users
 Ventrian Newbie Posts:8

 |
| 6/03/2009 1:30 PM |
|
I have another issue with links, and I'm hoping I didn't fat finger or miss something.
We have a custom login app that we must use here. That login app works within DNN. when someone logs in, it will grab the url and redirect them back to the page they were on.
So, my question is, after the initial login, everything is fine. They can see the articles that are secure, etc., etc. But, on that first login (when clicking a link to a secure article), they are taken back to the main news articles template listing all articles.
Is there a way to change this so that on the first login attempt it will take them directly to the article within the News Articles module, or will that be something we will need to build custom code in order to achieve?
Thanks in advance!
|
|
|
|
|
Scott McCulloch Administrators
 Ventrian Master Posts:17204


 |
| 6/04/2009 5:39 AM |
|
| It depends on your login module, is it redirecting back to the view article page. |
|
Scott McCulloch Site Administrator |
|
|
Carey Henderson Registered Users
 Ventrian Newbie Posts:8

 |
| 6/04/2009 6:32 AM |
|
Posted By Scott McCulloch on 6/04/2009 5:39 AM It depends on your login module, is it redirecting back to the view article page.
Let's say the user just hit the page listing all the articles. They click a link to a secure article, and the secure url catches them and sends them to our custom login page. On that initial, first-time login, it redirects them to where it should based on the functionality of the News Articles page -- which is to the secure url I've entered.
What I'm wondering is if there is any way we can send them back to the article they clicked on that first login, rather than the secure url. Does that make sense?
Based on how News Articles works, I'm afraid we'll have to do this on our login. The only way I can think (to keep things simple) is to, within the Listing.Item.html, create a custom redirect by using the [ARTICLELINK] token.
Perhaps we append a url string to the link to the article, i.e, [ARTICLELINK]?returnUrl=[ARTICLELINK]
Something like that. Then our login module would grab that 'returnUrl' link on the initial login and send them back to the article they clicked, not the main News Articles page.
Any thoughts? |
|
|
|
|
Carey Henderson Registered Users
 Ventrian Newbie Posts:8

 |
| 6/04/2009 12:56 PM |
|
I should have specified a different url string, since you're using returnurl in your functionality. So, assume I'd name the url string differently than yours.
|
|
|
|
|
Scott McCulloch Administrators
 Ventrian Master Posts:17204


 |
| 6/05/2009 6:59 AM |
|
Yes, it does make sense, when it goes to your login page, it doesn't append the link you came from? If you get to the article itself and it redirects, it should pass the returnurl parameter in the url. Do you see it in the url? If (ArticleSettings.SecureUrl.IndexOf("?") <> -1) Then Response.Redirect(ArticleSettings.SecureUrl & "&returnurl=" & Server.UrlEncode(Request.Url.ToString()), True) Else Response.Redirect(ArticleSettings.SecureUrl & "?returnurl=" & Server.UrlEncode(Request.Url.ToString()), True) End If |
|
Scott McCulloch Site Administrator |
|
|
Carey Henderson Registered Users
 Ventrian Newbie Posts:8

 |
| 6/05/2009 7:54 AM |
|
Scott, I've attached an image that may clear things up. |

|
|
|
|
Scott McCulloch Administrators
 Ventrian Master Posts:17204


 |
| 6/06/2009 3:39 AM |
|
| When they are sent to the login page, does it have the returnurl parameter? If it does, this is all I can do because it is the responsibility of your login control to redirect back using this parameter. |
|
Scott McCulloch Site Administrator |
|
|
Carey Henderson Registered Users
 Ventrian Newbie Posts:8

 |
| 6/08/2009 9:06 AM |
|
Posted By Scott McCulloch on 6/06/2009 3:39 AM When they are sent to the login page, does it have the returnurl parameter? If it does, this is all I can do because it is the responsibility of your login control to redirect back using this parameter.
That's the answer to the question that I've been looking for and I had thought might be the case. Thank you, Scott, for helping out on this.
|
|
|
|
|