Skip to content

Commit

Permalink
Merge pull request #35302 from nextcloud/bugfix/noid/unsupported-url
Browse files Browse the repository at this point in the history
Generate proper URL for unsupported browsers page
  • Loading branch information
szaimen authored Nov 23, 2022
2 parents b8074ae + 61ce0ad commit 9422d80
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion core/src/utils/RedirectUnsupportedBrowsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

import { generateUrl } from '@nextcloud/router'
import { supportedBrowsersRegExp } from '../services/BrowsersListService.js'
import browserStorage from '../services/BrowserStorageService.js'
import logger from '../logger.js'

export const browserStorageKey = 'unsupported-browser-ignore'
const redirectPath = '/unsupported'
const redirectPath = generateUrl('/unsupported')

const isBrowserOverridden = browserStorage.getItem(browserStorageKey) === 'true'

Expand Down
4 changes: 2 additions & 2 deletions dist/core-unsupported-browser-redirect.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9422d80

Please sign in to comment.