mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-07-05 15:10:16 +02:00
18a6090366
* Add Penalty Seconds on tests * Refactors and start of candidate answer relation * Add breadcrumbs and UI consistency updates across backoffice templates * Add breadcrumbs and UI consistency updates across backoffice templates * Add Dutch translations for email verification and security messages * Rector * Refactor for code consistency and type safety assertions across repositories and entities * Refactor candidate-related logic to optimize queries, improve template separation, and add "Answer Mapping" functionality. * Cleanup * Update Symfony * Add coderabbit config * Fixes from coderabbit
15 lines
401 B
JavaScript
15 lines
401 B
JavaScript
import {Controller} from '@hotwired/stimulus';
|
|
|
|
export default class extends Controller {
|
|
next() {
|
|
const currentUrl = new URL(window.location.href);
|
|
const pathParts = currentUrl.pathname.split('/');
|
|
// Remove the last segment
|
|
pathParts.pop();
|
|
// Update the pathname
|
|
currentUrl.pathname = pathParts.join('/');
|
|
// Navigate
|
|
window.location.href = currentUrl.href;
|
|
}
|
|
}
|