We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

LG .htaccess generator and javascript issue

Development and Programming

django6's avatar
django6
124 posts
about 16 years ago
django6's avatar django6

I have a javascript drop down navigation menu. I installed the htaccess generator, which seems to be working, but when I remove the index.php? from all my links the drop down menu state no longer works. In other words, the button that is clicked no longer stays lit. If I put the index.php? back into the links, the state works. I’m making the assumption that the htaccess code and the javascript code are not compatible, but I have no idea how/what to modify to make them work. Suggestions?

       
django6's avatar
django6
124 posts
about 16 years ago
django6's avatar django6

I figured this out. The links when using this extension and removing index.php require a trailing / otherwise the javascript code does not pick up the correct url. The strange thing is the links work fine without the backslash if I’m not using the extension. I think it has to do with the .htaccess rules appending the /, but I’m not really sure. If someone wants to explain what’s going on here I’d appreciate it.

javascript works:

<link href="{site_url}landscape-lore-music-myth-tour/">Landscape & Lore, Music & Myth Tour</link>

javascript works:

<link href="{site_url}index.php?/landscape-lore-music-myth-tour">Landscape & Lore, Music & Myth Tour</link>

javascript breaks:

<link href="{site_url}landscape-lore-music-myth-tour">Landscape & Lore, Music & Myth Tour</link>
       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.