ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Pagination url redirecting to homepage

September 07, 2012 6:41pm

Subscribe [2]
  • #1 / Sep 07, 2012 6:41pm

    xynergy_inc

    10 posts

    Having issues with pagination url redirecting to homepage

    Running
    EE v2.5.2

    Modules installed:
    Channel 2.0.1 Installed
    Code Pack 1.2.1 Installed
    Comment 2.3 Installed
    Email 2.0 Installed
    Emoticon 2.0 Installed
    jQuery 1.0 Installed
    Member 2.1 Installed
    Profile:Edit 1.0.7 Installed
    Rich Text Editor 1.0 Installed
    SafeCracker 2.1 Installed
    Structure 3.3.2 Installed
    Super Search 2.0.4 Installed

    .htaccess looks like:

    <IfModule mod_rewrite.c>
          RewriteEngine On

          # Removes index.php
          RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
          RewriteCond %{REQUEST_FILENAME} !-f
          RewriteCond %{REQUEST_FILENAME} !-d
          RewriteRule ^(.*)$ /index.php?/$1 [L]

          # If 404s, “No Input File” or every URL returns the same thing
          # make it /index.php?/$1 above (add the question mark)
    </IfModule>

    Example:

    Goto page: http://mysite.com/another-page
    Click on the pagination link
    Which has a url of http://mysite.com/another-page/P12

    I get redirected to the homepage.

    Anyone?

     

  • #2 / Sep 10, 2012 5:41am

    Shane Eckert

    7174 posts

    Hello xynergy_inc,

    Hmmm, that’s an odd one!

    I appreciate all the details. Would it be possible to get one more? Can you paste in the link as it looks rendered for the pagination? Just right click and view source on the rendered page.

    Is this pagination on page being produced by the pages module?

    Are you using structure on this page?

    Please let me know!

    Cheers,

  • #3 / Sep 10, 2012 12:11pm

    xynergy_inc

    10 posts

    Yes, this particular page is a structure page using a template with this loop within it.

    {exp:channel:entries channel="talent" dynamic="no" category="1|2" limit="12" paginate="bottom"}
     <div class="talent">
      {if headshot_1}
         <a href="http://{title_permalink=%27Talent/profile%27}" class="">{headshot_1}</a>
         <a href="http://{title_permalink=%27Talent/profile%27}" class="">{first_name} {last_name}</a>
         {if:else}
          <a href="http://{title_permalink=%27Talent/profile%27}" class="">_       /themes/site_themes/amtalenthouse/images/no-image.jpg_      </a>
          <a href="http://{title_permalink=%27Talent/profile%27}" class="">{first_name} {last_name}</a>
         {/if}
     </div>
         {paginate}
       <div class="pagination">{pagination_links}</div>
      {/paginate} 
    {/exp:channel:entries}

    Pretty straight forward, just still cant figure out why its redirecting.

    thanks

  • #4 / Sep 11, 2012 11:07am

    Shane Eckert

    7174 posts

    Hey there xynergy_inc,

    That looks good to me.

    Can you put that in a template on it’s own and see if that works? If it does, we know it’s the code around it.

    Can you also make sure this is not using structure? Structure changes so much about the way ExpressionEngine works.

    Please let me know the results.

    Cheers,

  • #5 / Sep 11, 2012 12:34pm

    xynergy_inc

    10 posts

    Tried it on its own, no luck. Uninstalled structure and reinstalled structure and now it works!  I’m still mystified by this, but now at least its working.  Thank you for all of your help.

    Best regards

  • #6 / Sep 12, 2012 10:31am

    Shane Eckert

    7174 posts

    Hey xynergy_inc,

    Gah! Structure!

    Really glad that it’s working now, that is awesome news.

    If you need anything else, please just let me know by opening a new thread.

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases