• Login
  • Register

DNN Forums

A community discussion page. We're starting from scratch, so...let's get the party started!

Getting issue related to non existing child page

You are not authorized to post a reply.
Sort:


New Member


Posts:20
New Member

    Getting issue related to page:

    If we hit invalid page(not existing) in browser through parent page like: /Article/1234124

    Then it alway redirect to article page. Is there any setting in dnn to point this page to 404 page 

    Thanks in advance



    Basic Member


    Posts:25
    Basic Member

      If you're using DNN 9, Settings>Site Settings>Site Behavior


      New Member


      Posts:20
      New Member

        Thanks Francisco Pérez Andrés

        But still its not working .when child pages is not exist ,its always redirecting to parent page.
        example:
        url: /Article/1234124
        existing behaviour: redirect to Article page
        expected: 404 error



        Advanced Member


        Posts:153
        Advanced Member

          Posted By Anjali on 10 Sep 2019 06:09 AM

          Getting issue related to page:

          If we hit invalid page(not existing) in browser through parent page like: /Article/1234124

          Then it alway redirect to article page. Is there any setting in dnn to point this page to 404 page 

          Thanks in advance

          Side question. We have some issues with users that post in the "wrong" forum.
          Did you see that this was in the "About this website" forum? (I'll move it to the right forum now)

           

           



          Basic Member


          Posts:119
          Basic Member

            Given that the URL is /Article/1234124, I would guess that this is one of those dynamically generated pages, and that the article (1234124) is really treated as a querystring parameter, and that the actual URL is something like

            /article?articleid=1234124

            So, when this gets processed at the article page, there is no match to the parameter, so the article is not injected into the page, and the module displays the unmodified page.

            In other words, there isn't a missing child page. Instead, there is a parameter that's passed to the page, it doesn't exist, so the module on that page does something else.

            I'm not sure how this should be handled, but the behavior described of showing the unmodified article page is one way to do it. Another way would be to post an error to the page saying something like "the article you have requested doesn't exist." A third way to do this would be to redirect to a 404 page. But, these choices or another is a module's responsibility, not DNN's.

            That's the way I understand it, and it's they way that a blog module that I use on several sites works.
            Joe Craig DNN MVP Patapsco Research Group
            You are not authorized to post a reply.

            These Forums are dedicated to discussion of DNN Platform.

            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.

            Would you like to help us?

            Awesome! Simply post in the forums using the link below and we'll get you started.

            Get Involved