Fork me on GitHub

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Support for Vanilla Forums Cloud product

In this Discussion

Ready to contribute?

Amazing! Sign our contributors' agreement and then join us on GitHub.

Current releases are 2.1.3 (9 Sept 2014) and 2.0.18.13 (5 Aug 2014)

Ready for 2.1? Find out if your plugins are compatible. 2.0 will no longer be updated after Dec 2014.

Embed and reload pages

edited February 2011 in Vanilla 2.0 Help
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:

Comments

  • edited 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.
Sign In or Register to comment.