nyastodon/app/javascript/flavours/glitch/components
Thibaut Girka cc396f085d Use history.state to decide whether we should goBack() or go to / (fixes #247)
So far, glitch-soc used history.length to decide whether to call `goBack()` or
go to / in order to not leave the webUI. This made clicking the “Back” button
go to the “Getting started” column instead of going back in the browser's
history when such an action would leave the web UI, but also when:
- The WebUI is refreshed (F5)
- A tab is restored
- The history length reaches its maximum (e.g., 50 in Firefox)

This commit fixes these shortcomings by checking `window.history.state`.
Indeed, we only want to go back in the browser's history when the current
location has been reached from within the WebUI, which only happens via
`pushState` as far as I know. Since browser store the serialized state in
the browser history, this also survives page reload and session restoration.
2018-05-31 14:39:02 +02:00
..
account.js [Glitch] Display unfollow button even if account moved 2018-03-29 14:59:20 +02:00
attachment_list.js Fix attachment lists 2018-03-28 22:19:36 +02:00
avatar.js WIP <Compose> Refactor; SCSS ed. 2018-01-04 18:23:46 -08:00
avatar_overlay.js Fix GIF avatars not autoplaying (fixes #287, tootsuite pr #6000) 2017-12-28 08:30:51 -06:00
button.js Rename themes -> flavours ? ? 2017-12-03 23:26:40 -08:00
collapsable.js Style fixes to make eslint happier, hopefully 2018-01-18 09:13:07 -06:00
column.js Rename themes -> flavours ? ? 2017-12-03 23:26:40 -08:00
column_back_button.js Use history.state to decide whether we should goBack() or go to / (fixes #247) 2018-05-31 14:39:02 +02:00
column_back_button_slim.js Use history.state to decide whether we should goBack() or go to / (fixes #247) 2018-05-31 14:39:02 +02:00
column_header.js Use history.state to decide whether we should goBack() or go to / (fixes #247) 2018-05-31 14:39:02 +02:00
display_name.js Styling and autosuggest fixes for #293 2018-01-05 20:43:16 -08:00
domain.js Add basic domain block UI 2018-03-30 10:07:33 +02:00
dropdown_menu.js Improve accessibility of toot dropdown menu 2018-05-05 17:11:48 +02:00
extended_video_player.js [Glitch] Improved media modal 2018-04-08 23:15:25 +02:00
icon.js WIPgit status <Compose> Refactor; <Composer> ed. 2018-01-04 18:21:59 -08:00
icon_button.js Style fixes to make eslint happier, hopefully 2018-01-18 09:13:07 -06:00
intersection_observer_article.js Revert 245816ab27 (fixes #348) 2018-02-10 20:59:50 +01:00
link.js WIP <Compose> Refactor; 1000 tiny edits 2018-01-04 18:33:13 -08:00
load_gap.js [Glitch] Improve load gap styling in web UI 2018-05-29 21:25:28 +02:00
load_more.js [Glitch] Allow clients to fetch statuses made while they were offline 2018-05-29 21:25:28 +02:00
loading_indicator.js Rename themes -> flavours ? ? 2017-12-03 23:26:40 -08:00
media_gallery.js Fix width only being set for standalone media 2018-05-21 18:25:41 +02:00
missing_indicator.js Port 7badad7797 to glitch frontend 2018-01-18 10:25:37 -06:00
modal_root.js Fix root modal's keyup handling (Fixes #478) 2018-05-11 22:42:32 +02:00
notification_purge_buttons.js Rename themes -> flavours ? ? 2017-12-03 23:26:40 -08:00
permalink.js Styling and autosuggest fixes for #293 2018-01-05 20:43:16 -08:00
relative_timestamp.js [Glitch] Improve relative timestamps in web UI 2018-05-02 13:45:40 +02:00
scrollable_list.js [Glitch] Allow clients to fetch statuses made while they were offline 2018-05-29 21:25:28 +02:00
setting_text.js Rename settingKey to settingPath (tootsuite pr #6046 & #6098) 2017-12-26 13:21:20 -06:00
status.js [Glitch] Open video modal on public UI 2018-05-17 18:37:00 +02:00
status_action_bar.js [Glitch] Feature: Direct message from Statuses 2018-05-16 19:45:30 +02:00
status_content.js Prevent click on video from opening detailed toot 2018-05-18 17:49:51 +02:00
status_header.js compress boost/fave notifications more 2018-03-13 13:54:57 -04:00
status_icons.js Refactor the infamous three-valued boolean into two booleans, trying to simplify the logic 2018-04-22 19:18:15 +02:00
status_list.js [Glitch] Improve load gap styling in web UI 2018-05-29 21:25:28 +02:00
status_prepend.js [Glitch] Federate pinned statuses over ActivityPub 2018-03-16 23:16:20 +01:00
status_visibility_icon.js Rename themes -> flavours ? ? 2017-12-03 23:26:40 -08:00
text_icon_button.js WIPgit status <Compose> Refactor; <Composer> ed. 2018-01-04 18:21:59 -08:00