Skip to content
Snippets Groups Projects
Commit e5738122 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #148089 by ChrisKennedy: fixed clean URL test on Safari.

parent fd9dc74c
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -34,7 +34,7 @@ Drupal.cleanURLsSettingsCheck = function() {
*/
Drupal.cleanURLsInstallCheck = function() {
var pathname = location.pathname +"";
var url = pathname.replace(/\/[^\/]*?$/, '/') +"node";
var url = pathname.replace(/\/[^/]*$/, "/") +"node";
$("#clean-url .description").append('<span><div id="testing">'+ Drupal.settings.cleanURL.testing +"</div></span>");
$("#clean-url.install").css("display", "block");
$.ajax({url: location.protocol +"//"+ location.host + url, type: "GET", data: " ", complete: function(response) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment