[tw5] is it possible to make normal working "back" button?

153 views
Skip to first unread message

Siniy-Kit

unread,
Jul 13, 2015, 4:29:42 PM7/13/15
to tiddl...@googlegroups.com
I use zoomin view on my site and try many variants to make back button using history, close button and javascript button. All this variants work incorrect. history list sorted in a very strange way.

here is my button

 <a  href="#" onclick="history.go(-1);return false;"> <button style="color:#000;  border: none;">   {{$:/core/images/chevron-left}}  Back   </button> </a>


sometimes it back to wrong page.

Siniy-Kit

unread,
Jul 13, 2015, 5:43:28 PM7/13/15
to tiddl...@googlegroups.com
this button works well on tw site (history is on),  but on my site it often goes back to home page, not previous....


 

BJ

unread,
Jul 14, 2015, 12:35:26 AM7/14/15
to tiddl...@googlegroups.com

I think there is  a bug, in zooming mode if the current tiddler is closed  the history is not modified.

Siniy-Kit

unread,
Jul 14, 2015, 3:34:41 AM7/14/15
to tiddl...@googlegroups.com
it was problem with href="#"   for tw5 sometimes it is link to the first page.... I add eventlistener  to my div and javascript function. So it was not problem with history.

вторник, 14 июля 2015 г., 7:35:26 UTC+3 пользователь BJ написал:

Jeremy Ruston

unread,
Jul 14, 2015, 4:49:39 AM7/14/15
to TiddlyWiki
Hi Siniy-Kit

The issue here is that the browser history is only updated during tiddler navigation when "Update browser history when navigating to a tiddler:" is set to "Update history". Without that setting, history.go(-1) will indeed return to the previous browser page.

Best wishes

Jeremy.


--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/5835bfc7-c585-4b7f-8dbf-c5cd348ccbd5%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Jeremy Ruston
mailto:jeremy...@gmail.com
Reply all
Reply to author
Forward
0 new messages