1import { Controller } from '@hotwired/stimulus'; 2import showNotification from '../../js/notification.js'; 3import Modal from '../../js/modal.js'; 4 5 6export default class extends Controller { 7 8 static targets = [ "link"]; 9 10 11 handleFormSaved(event) { 12 13 const permalink = document.querySelector('input[name*="[permalink]"]'); 14 15 if (permalink) { 16 const viewLink = this.linkTarget; 17 const linkParts = viewLink.href.split('/'); 18 linkParts[linkParts.length - 1] = permalink.value; 19 viewLink.href = linkParts.join('/'); 20 } 21 } 22 23 24}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.