Vanilla Forums: Community Forums Evolved
Addons
Community
Documentation
Blog
Download
Hosting
Start Using Vanilla today
Home
›
Questions
Sign In
•
Register
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Unanswered
861
Best of...
Categories
All Categories
19.3K
Questions
18.3K
Developers
82
Localization
104
Feedback
755
Blog
17
In this Discussion
fiazk
February 2011
Embed and reload pages
fiazk
February 2011
in
Questions
When I view my embedded forum, click through to a thread then reload the page, it loses where i was and reverts back to the forum home page. Is there a way for it to remember which page it is on and return to it upon a refresh?
Tagged:
embedvanilla
Flag
Spam
Abuse
Troll
0
•
Off Topic
Insightful
Awesome
LOL
•
Comments
fiazk
February 2011
Managed to narrow it down to the following in remote.js:
currentPath = window.location.hash.substr(1),
disablePath = currentPath && currentPath[0] != "/";
disablePath |= (window != top);
if (!currentPath || disablePath)
currentPath = "/";
If i comment out:
// if (!currentPath || disablePath)
// currentPath = "/";
It works. Unsure as to the logic here and why disablePath is needed.
This was tested in chrome/osx and ff/ie on a pc.
Flag
Spam
Abuse
Troll
0
•
Off Topic
Insightful
Awesome
LOL
•
Sign In
or
Register
to comment.
Powered by Vanilla
Comments
currentPath = window.location.hash.substr(1),
disablePath = currentPath && currentPath[0] != "/";
disablePath |= (window != top);
if (!currentPath || disablePath)
currentPath = "/";
If i comment out:
// if (!currentPath || disablePath)
// currentPath = "/";
It works. Unsure as to the logic here and why disablePath is needed.
This was tested in chrome/osx and ff/ie on a pc.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •