summaryrefslogtreecommitdiffstats
path: root/core/src/OC/navigation.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/OC/navigation.js')
-rw-r--r--core/src/OC/navigation.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/OC/navigation.js b/core/src/OC/navigation.js
index c841ed5751e..b37d339b41b 100644
--- a/core/src/OC/navigation.js
+++ b/core/src/OC/navigation.js
@@ -22,10 +22,12 @@
/**
* Redirect to the target URL, can also be used for downloads.
* @param {string} targetURL URL to redirect to
+ * @deprecated 17.0.0 use window.location directly
*/
export const redirect = targetURL => window.location = targetURL
/**
* Reloads the current page
+ * @deprecated 17.0.0 use window.location.reload directly
*/
export const reload = () => window.location.reload()