CodeIgniter URL - url

Sorry, but something weird is happening to me. I thought I should share.
Everything works fine in my CodeIgniter install doing local development, but I noticed that if I for example clicked on a link with the value of href being “controller/function” everything works fine. If I try to navigate to another page (essentially to another function inside my controller, say “controller/function1”, my CodeIgniter stacks the URL. The following is an example of what it does!
http://localhost/wayefoundation/index.php/mainpage/mainpage/programs
I was checking the community and only CodeIgniter 1.5.3 was mentioned to have some sort of bug even though I believe to check myself as well. What is happening to the URL above?

I figured it out. Sorry about the link, but I had to use site_url(). All the links were fine. I did not have a case of "accumulated links" in my address bar. So I did this for all my hrefs,
site_url("controller/method")

Related

Turning on SEO-Friendly URLs on Joomla makes all navigation show home page

Here is the site I'm working on: http://demo1.omnihealthtech.com/
If you try navigating with the 'Quick Links' menu, all pages show only the Home page, even though the URL is different. This only happens when I turn SEO-Friendly URLs on.
I've already got my host to do this http://docs.joomla.org/Enabling_Search_Engine_Friendly_(SEF)_URLs , but the problem is still occurring.
Other info:
- This site is running on the 'Gavick Startup' template.
- I have another site running on the 'Gavick Boutique' template, but that has no problems with SEO-Friendly URLs.
Very puzzled by what's going on. I've done a lot of Googling but nothing comes up :\ Please help! Thanks!
Okay I found the problem.
The Gavick theme had plugins called "System - GK Cache" and "System - GK Extended Cache". The Extended Cache was meant as an alternative caching system. Turning both on at the same probably causes a conflict resulting in the problem above. Simply disabling the Extended Cache puts everything back to normal.

Pins on Pinterest link to 404 - yet link is valid

this is a really strange one.
I've set up a bunch of pins on Pinterest linking through to our services which all work fine. Then I decided to do the same on our blog articles (we use Wordpress), yet everytime I click the link (and I've done this on different computers) the link goes to a 404 page on our site. However the link is valid and if you right click the pin and open in new window it opens fine: pinterest.com/pin/105342078755648946
I have contacted Pinterest who are next to useless. I have also tried different browsers, different computers and different Pinterest accounts.
I can't see any weirdness in my htaccess files causing this so I'm a little stumped. Any suggestions?
I found this when I was searching for the same issue - so though it's an old question I thought I'd answer for anyone else who is searching!
My client was using a really old version of WordPress, when I upgraded to the latest version it fixed the issue. After a bit of digging it turns out you have to be on WordPress 1.5.2 and beyond in order to fix it - as they applied the fix in that update.

Search result not kept when browsing back

I have a search page that uses jQuery to populate a table with search results. Search.aspx is the main page and the data is added from SearchAdd.ascx.
I decided to recreate my project and so I manually copied everything from one project to the other. Everything works and looks the same in both projects except for this thing. When I've done a search, browsed to a search result and then hit the back button in the browser, I don't get the previous search results any more.
So my question is, what do I look for?
I've checked that these are exactly the same on both projects:
viestatemode="Enabled"
jQuery scripts
global.asax
web.config
What else is there to look for? Could have anything to do with the virtual directory?
Any help is appreciated.
browser back button has nothing to do with what you have tested for. it is simply client side. it shows the thing from the browser's history, unless you have not altered the behaviour of the back button.
It had to do with the jQuery version.
In my old project I used jquery-1.4.4.min.js and in the new I used jquery-1.5.1.min.js. Switched back and the history is kept when hitting the back button.
I don't know why though?

will_paginate and facebook/facebooker

I'm using will_paginate in a facebook application and when i click on
the next button or a page number i get the url below. This is fine if
everyone was using safari, but it breaks on ie and ff. That and people
can't copy and paste the url to others. Anyone have any ideas how to
fix this.
http://apps.facebook.com/application/users/4785/votes.fbml?_method=GE... URL TOO BIG
Already discussed here. And solved.

Displaying user website link in view

Is this fine or is there a different way?
<%=Html.Encode(Model.Website??"")%>
Seems fine to me, although you might want to check that the website doesn't already start with "http://" as well.
You could write a custom HTML Helper to do it for you.

Resources