php-debugbar icon indicating copy to clipboard operation
php-debugbar copied to clipboard

(fix) editor ajax template links

Open erikn69 opened this issue 2 years ago • 0 comments

  • str_replace('\\', '/', $url) fix editor links when local site replacement is windows os
  • " " breaks html attribute on ajax template links, replaced with \' \'
  • on second click throws r is already declared on ajax template links, now javascript is encapsulated in a function
  • rawurlencode added for file paths

UPDATE: I did a little research, seems like file path must be url encoded, look spatie/ignition/hooks/useEditorUrl.ts#L36 Whoops/Handler/PrettyPageHandler.php#L524-L525

erikn69 avatar Sep 22 '23 16:09 erikn69