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.

Calendar links not adding question mark to index.php in url

February 16, 2013 6:10pm

Subscribe [2]
  • #1 / Feb 16, 2013 6:10pm

    prhey404

    5 posts

    When a link in my calendar is clicked, the url removes the question mark from index.php. I need the question mark in the url, because without it some of my page does not display. It’s hard for me to explain, but here is a code snippet:

    {exp:channel:calendar switch="calendarToday|calendarCell"}
     {if entries}<td class='{switch}' align='center'><a href="http://{day_path=kb/events}">{day_number}</a></td>{/if}
    {/exp:channel:calendar}

    To see it in action, go to my homepage: http://www.myincfoundation.com

    And click the link on Feb 16th in my calendar on the right hand side.

    It goes to http://www.myincfoundation.com/index.php/kb/events/2013/02/16

    and it should go to http://www.myincfoundation.com/index.php?/kb/events/2013/02/16

    The only difference is that the question mark is removed from the link from my calendar. So the page you are taken to does not show my header image. If I add the “?” to index.php, my header image shows.

    I found a forum here that explains that you could remove the question mark from expressionengine/config/config.php:

    $config['index_page'] = "index.php?";

    I tried this and cleared my browser cache and clicked the link in my calendar again, but it still did not fix the issue of displaying my header image. Whether or not the question mark was added or removed from my config file, my header image still did not show.

    What could be the problem here?

  • #2 / Feb 16, 2013 6:54pm

    ahmad saad

    364 posts

    can you please tell me how you generate the URLs with ? in the other pages (with path= or else).

    and can check Admin ‣ System Administration ‣ Output and Debugging ‣ Force URL query strings?

    value please?

    Regards,

    Ahmad saad.

  • #3 / Feb 16, 2013 11:07pm

    prhey404

    5 posts

    Hi Ahmad,
    Thanks so much for your reply!

    For the other links (such as top nav), I am using the absolute url:

    a href=“http://www.myincfoundation.com/index.php?/kb/”

    My force URL query strings value is “No”

  • #4 / Feb 16, 2013 11:13pm

    prhey404

    5 posts

    Changing my output and debugging preferences:

    Force URL query strings to “Yes” solved the problem!

    Thanks so much for helping me solve this Ahmad.

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

ExpressionEngine News!

#eecms, #events, #releases