Welcome Guest, Not a member yet? Register   Sign In
Hash in url using redirect function
#5

[eluser]Freeze Dried Pop[/eluser]
I don't know if it's a perfect solution but I discovered that there's a site_url function which the redirect function runs through so I just used that and appended the hash tag onto the end.

Code:
$url = site_url(blog/article/3/article-title);

redirect($url.'#comment_13');

I suppose that it should still work even if you change the suffix away from ".html", although don't quote me on that as I haven't investigated how all browsers perform.


Messages In This Thread
Hash in url using redirect function - by El Forum - 03-31-2011, 05:31 PM
Hash in url using redirect function - by El Forum - 03-31-2011, 05:41 PM
Hash in url using redirect function - by El Forum - 03-31-2011, 05:55 PM
Hash in url using redirect function - by El Forum - 03-31-2011, 06:16 PM
Hash in url using redirect function - by El Forum - 04-01-2011, 07:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB