bug in forums

Here's a place to suggest/discuss improvements to the site.

Moderator: EMG

bug in forums

Postby wohermiston » April 6th, 2013, 7:25 am

just found an interesting bug.
was reading through the diaper forum and clicked the top of page link and it blew me out to the welcome page!
wohermiston
Guru
Guru
 
Posts: 414
Joined: April 23rd, 2005, 12:00 am

Re: bug in forums

Postby EMG » April 6th, 2013, 11:00 am

wohermiston wrote:just found an interesting bug.
was reading through the diaper forum and clicked the top of page link and it blew me out to the welcome page!


Can you give me a little more information as to which forum, which link, etc so I can see if I can reproduce/fix it.
EMG
Site Admin
Site Admin
 
Posts: 1683
Joined: April 3rd, 2005, 1:00 am

Postby demigraff » April 6th, 2013, 12:42 pm

The "Back to top" link next to every forum post, under the avatar and so on. You've got href="#top" ... which should work, but for some reason my browser is behaving as if it said href="/#top". Does chrome not understand links like that, or is there a script somewhere making it behave oddly?
demigraff
Guru
Guru
 
Posts: 589
Joined: April 13th, 2005, 12:00 am

Postby dark_wolf49 » April 8th, 2013, 6:14 am

I clicked on the "Back to top " button and it threw me back to the "Enter " (front page)Page,but I was still sign in.
dark_wolf49
Mentor
Mentor
 
Posts: 126
Joined: April 3rd, 2005, 1:00 am

Postby EMG » April 8th, 2013, 12:31 pm

Ahh, I see, I suspect that can be repaired as it's a relatively simple bug.
EMG
Site Admin
Site Admin
 
Posts: 1683
Joined: April 3rd, 2005, 1:00 am

Postby wohermiston » May 11th, 2013, 8:30 am

the current code for that link is: http://www.warpmymind.com/#top
it should be: #top
it is the http://www.warpmymind.com/ that is pointing the browser back to the home page. simple change i would think
wohermiston
Guru
Guru
 
Posts: 414
Joined: April 23rd, 2005, 12:00 am

Postby demigraff » May 11th, 2013, 11:56 am

wohermiston wrote:the current code for that link is: http://www.warpmymind.com/#top
it should be: #top
it is the http://www.warpmymind.com/ that is pointing the browser back to the home page. simple change i would think

So where do you remove the page name from?
The page source clearly says '<a href="#top">', as it should. But somewhere in between (javascript? Browser second-guessing?) the link is coming to point to an absolute URL.

Ah; it's the base URL in the head. Does that actually serve any purpose?
demigraff
Guru
Guru
 
Posts: 589
Joined: April 13th, 2005, 12:00 am

Postby wohermiston » May 12th, 2013, 1:23 pm

Hi,
I had not actually looked at the source code. Not sure if the Base tag is actually neccessary. but, here is one such solution for the top of page code: <a href="javascript:;" onclick="document.location.hash='#top';">Top of Page</a>
wohermiston
Guru
Guru
 
Posts: 414
Joined: April 23rd, 2005, 12:00 am


Return to Site Improvements

Who is online

Users browsing this forum: No registered users and 8 guests