teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

3

文言の追記

2017/01/05 09:06

投稿

YumaYamada
YumaYamada

スコア30

title CHANGED
File without changes
body CHANGED
@@ -40,7 +40,7 @@
40
40
  href (現在アクセスしているURL)
41
41
  http://example.com/index.html
42
42
 
43
- current (local storageに保存されたURL)
43
+ current (local storageに保存された最終アクセス時のURL)
44
44
  http://example.com/about.html
45
45
 
46
46
 
@@ -48,7 +48,7 @@
48
48
  href (現在アクセスしているURL)
49
49
  http://example.com/index.html
50
50
 
51
- current (local storageに保存されたURL)
51
+ current (local storageに保存された最終アクセス時のURL)
52
52
  http://example.com/index.html
53
53
 
54
54
  ###補足情報

2

試したことに就いての追記

2017/01/05 09:06

投稿

YumaYamada
YumaYamada

スコア30

title CHANGED
File without changes
body CHANGED
@@ -34,5 +34,22 @@
34
34
  下記補足情報のサイトに記載されている方法として、localstorageを使用して前回アクセスした記録を保存し、アプリ再起動時に前回のアクセス記録を呼び出すという方法で上記のコードを記述したのですが、上手く動きません。
35
35
  上記コードの改善点、又は他のアイディアがあればご教示いただけますと幸いです。
36
36
 
37
+ 追記(上手く動かない点について):
38
+ アプリで再起動した時に以下のように出力され、currentの変数に格納されているURLへリダイレクトするようにしたいです。
39
+
40
+ href (現在アクセスしているURL)
41
+ http://example.com/index.html
42
+
43
+ current (local storageに保存されたURL)
44
+ http://example.com/about.html
45
+
46
+
47
+ しかし、現在index.htmlにアクセスすると以下のように表示され、上手く動きません。
48
+ href (現在アクセスしているURL)
49
+ http://example.com/index.html
50
+
51
+ current (local storageに保存されたURL)
52
+ http://example.com/index.html
53
+
37
54
  ###補足情報
38
55
  [http://stackoverflow.com/questions/4291784/stop-native-web-app-from-reloading-itself-upon-opening-on-ios#answer-4454083](http://stackoverflow.com/questions/4291784/stop-native-web-app-from-reloading-itself-upon-opening-on-ios#answer-4454083)

1

リンクの更新

2017/01/05 09:04

投稿

YumaYamada
YumaYamada

スコア30

title CHANGED
File without changes
body CHANGED
@@ -35,4 +35,4 @@
35
35
  上記コードの改善点、又は他のアイディアがあればご教示いただけますと幸いです。
36
36
 
37
37
  ###補足情報
38
- http://stackoverflow.com/questions/4291784/stop-native-web-app-from-reloading-itself-upon-opening-on-ios#answer-4454083
38
+ [http://stackoverflow.com/questions/4291784/stop-native-web-app-from-reloading-itself-upon-opening-on-ios#answer-4454083](http://stackoverflow.com/questions/4291784/stop-native-web-app-from-reloading-itself-upon-opening-on-ios#answer-4454083)