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

[eluser]Freeze Dried Pop[/eluser]
Is there a way to get a hash onto the end of a url using code igniters built in functions e.g.

I append html to the end of my url's.

If I wanted to redirect to:

mydomain.com/blog/article/3/article-title.html

I would just use:

redirect(blog/article/3/article-title);

And it would do the rest.

But say I wanted to redirect to:

mydomain.com/blog/article/3/article-title.html#comment_13

How would I go about that? I can't put the hash in the string being sent to the redirect function since it will be wind up being

mydomain.com/blog/article/3/article-title#comment_13.html

But as far as I can tell it's not catered for at all with any other functions....


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