27-Jan-2015, 08:03 PM
My page uses anchor tags. And when someone submits a comment, it replaces the current anchor tab with another one, and that messes up the rendering of the page.
For example, the discussion part of the page is hidden unless you click on the discussion tab, then it changes the URL to this:
http://foundingfatherquotes.com/founding...discussion
Notice that it adds the #section=discussion. Is there a way to turn off the URL rewrite when you add a new comment. Now, it will change it to this:
http://foundingfatherquotes.com/founding...#cmtx_form
Is there an easy way to modify the script so that after you submit a message, it does not add the #cmtx_form part to the script, but leaves the current anchor tag in place. Or even better, if there is a current anchor tag, go to it, if not then add the #cmtx_form tag.
I could probably figure it out if I dug into the code, but I wanted to ask the question here first.
For example, the discussion part of the page is hidden unless you click on the discussion tab, then it changes the URL to this:
http://foundingfatherquotes.com/founding...discussion
Notice that it adds the #section=discussion. Is there a way to turn off the URL rewrite when you add a new comment. Now, it will change it to this:
http://foundingfatherquotes.com/founding...#cmtx_form
Is there an easy way to modify the script so that after you submit a message, it does not add the #cmtx_form part to the script, but leaves the current anchor tag in place. Or even better, if there is a current anchor tag, go to it, if not then add the #cmtx_form tag.
I could probably figure it out if I dug into the code, but I wanted to ask the question here first.