You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2023/01/03 13:35:56 UTC

[GitHub] [cordova-ios] sombatos opened a new issue, #1281: Links to the upper level URLs (../test/page.html) do not work on iOS 15-16

sombatos opened a new issue, #1281:
URL: https://github.com/apache/cordova-ios/issues/1281

   # Bug Report
   
   Links to the upper level URLs (`../test/page.html`) work fine on **iOS 12** but do not work on **iOS 15-16**.
   
   Also the following JavaScript code does not work anymore (before it was redirecting to the specified page):
   ```
   window.location.href = "../test/page.htm";
   window.location.href = "file:///private/var/containers/Bundle/Application/D073O-CD734-BBDD-C64E/www/test/page.htm";
   ```
   
   Is this something that need to be fixed in `cordova-ios`? Or maybe someone knows some workaround?
   
   ### Version information
   iOS 15-16
   
   XCode 13.0.x
   
   ```
   <engine name="cordova-ios" spec="6.2.0" />
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] sombatos commented on issue #1281: Links to the upper level URLs (../test/page.html) do not work on iOS 15-16

Posted by GitBox <gi...@apache.org>.
sombatos commented on issue #1281:
URL: https://github.com/apache/cordova-ios/issues/1281#issuecomment-1370530196

   Also one need to keep in mind that `window.open()` will work only as a result of clicking some link. It won't work if you just do:
   ```
   <script>
   window.open("../test/page.html");
   </script>
   ```
   Read more in this comment: https://github.com/apache/cordova-ios/issues/898#issuecomment-729450208


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] sombatos commented on issue #1281: Links to the upper level URLs (../test/page.html) do not work on iOS 15-16

Posted by GitBox <gi...@apache.org>.
sombatos commented on issue #1281:
URL: https://github.com/apache/cordova-ios/issues/1281#issuecomment-1369829803

   Using `window.WkWebView.convertFilePath('your/file/path')` as recommended in some places does not help.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] sombatos commented on issue #1281: Links to the upper level URLs (../test/page.html) do not work on iOS 15-16

Posted by GitBox <gi...@apache.org>.
sombatos commented on issue #1281:
URL: https://github.com/apache/cordova-ios/issues/1281#issuecomment-1370065030

   Thanks. It works with `window.open()`.
   
   Hopefully `window.open()` does not create an extra window but simply  changes location of the current window.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] sombatos closed issue #1281: Links to the upper level URLs (../test/page.html) do not work on iOS 15-16

Posted by GitBox <gi...@apache.org>.
sombatos closed issue #1281: Links to the upper level URLs (../test/page.html) do not work on iOS 15-16
URL: https://github.com/apache/cordova-ios/issues/1281


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] remoorejr commented on issue #1281: Links to the upper level URLs (../test/page.html) do not work on iOS 15-16

Posted by GitBox <gi...@apache.org>.
remoorejr commented on issue #1281:
URL: https://github.com/apache/cordova-ios/issues/1281#issuecomment-1369955940

   ```
   // Assuming localFile points to "file:///private/var/whatever...
   localFile = window.WkWebView.convertFilePath(localFile);
   window.open(localFile)
   ```
   
   Works for me Cordova iOS 6.2.0. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org