Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...dnn600 bug: /register.aspx friendly urls NOT respecting custom rego page admin settingsdnn600 bug: /register.aspx friendly urls NOT respecting custom rego page admin settings
Previous
 
Next
New Post
8/21/2011 6:11 AM
 
Can anyone else verify this for me in dnn600:

If you use the friendly url shortcut to a registration page - and you have a custom registration page set in admin settings - the default registration page is displayed INSTEAD of the custom rego page.

For example:

http://www.dotnetnuke.com/register.aspx takes u to an out of date default rego page without any side bars or the header banner.

While clicking on the registration button at the top of the page takes you the to correct page:

http://www.dotnetnuke.com/Home/User-Registration.aspx?returnurl=http%3a%2f%2fwww.dotnetnuke.com%2f

The /login.aspx friendly url is doing the correct thing however.

Westa
 
New Post
8/21/2011 8:48 AM
 
sounds like an error to me - please log it at support.dotnetnuke.com (note: there are a lot more custom login modules so it's likely this is a simple oversight rather than a bug)

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
8/21/2011 9:27 AM
 
already logged to support:

http://support.dotnetnuke.com/issue/V...

In the mean time - checked thru the code in URLRewriteModule,cs - and yes the code for remapping /Register.aspx to a custom rego module is missing - all the code is there for login.aspx but its missing for register,aspx.

Current code is:

if ((tabPath == "/register.aspx"))
{
    if ((!String.IsNullOrEmpty(app.Request.Url.Query)))
    {
        RewriterUtils.RewriteUrl(app.Context, "~/" + Globals.glbDefaultPage + "?portalid=" + portalID + "&ctl=Register&" + app.Request.Url.Query.TrimStart('?'));
    }
    else
    {
        RewriterUtils.RewriteUrl(app.Context, "~/" + Globals.glbDefaultPage + "?portalid=" + portalID + "&ctl=Register");
    }
    return;
}

It should look like this:

if ((tabPath == "/register.aspx"))
{
    //Get the Portal
    PortalInfo portal = new PortalController().GetPortal(portalID);
    if (portal.RegisterTabId > Null.NullInteger)
    {
        if ((!String.IsNullOrEmpty(app.Request.Url.Query)))
        {
            RewriterUtils.RewriteUrl(app.Context, "~/" + Globals.glbDefaultPage + "?TabID=" + portal.RegisterTabId + app.Request.Url.Query.TrimStart('?'));
        }
        else
        {
            RewriterUtils.RewriteUrl(app.Context, "~/" + Globals.glbDefaultPage + "?TabID=" + portal.RegisterTabId);
        }
        return;
    }
    else
    {
        if ((!String.IsNullOrEmpty(app.Request.Url.Query)))
        {
            RewriterUtils.RewriteUrl(app.Context, "~/" + Globals.glbDefaultPage + "?portalid=" + portalID + "&ctl=Register&" + app.Request.Url.Query.TrimStart('?'));
        }
        else
        {
            RewriterUtils.RewriteUrl(app.Context, "~/" + Globals.glbDefaultPage + "?portalid=" + portalID + "&ctl=Register");
        }
        return;
    }
}


Westa

 
New Post
3/8/2012 10:57 AM
 
Is there anyway that google can pick up the register.aspx as a potential? If so, then this is a big issue for sites that have custom registration modules, as they have the potential to be bypassed, which could mean lost revenue or other unwanted consequences. Is there anyway to setup a redirect for this or some other work around?
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...dnn600 bug: /register.aspx friendly urls NOT respecting custom rego page admin settingsdnn600 bug: /register.aspx friendly urls NOT respecting custom rego page admin settings


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out