[Neos] RFC: Get rid of "lastVisitedUri"
Bastian Waidelich
bastian at typo3.org
Tue Nov 26 13:09:03 CET 2013
Aske Ertmann wrote:
>> We could add the current node identifier to a meta tag or pass it to the script [...]
> Well that’s true, didn’t really consider this option since it’s more code to achieve it of course.
If we rely on the availability of the querySelector (Chrome 1+, FF 3.5+,
IE8+, Opera 10+, Safari 3.2+) this would be a one-liner:
document.querySelector('script[data-neos-node]').getAttribute('data-neos-node');
But putting the script into an external file raises new questions that's
why I wanted to keep it to a separate change set. See:
https://review.typo3.org/#/c/25688/
--
Bastian Waidelich
More information about the Neos
mailing list