import { redirect } from '@sveltejs/kit';

//#region src/routes/tasks/tree/[epicId]/+page.server.ts
/**
* Legacy `/tasks/tree/[epicId]` route — 301 redirect to the new Task Explorer
* hierarchy tab on `/tasks`.
*
* T956 merged the three explorer tabs (Hierarchy, Graph, Kanban) into the
* single `/tasks` page with hash-based tab switching. The old epic-tree page
* lives on as a thin redirect shell so external links and bookmarks continue
* to work: `/tasks/tree/TXXX` now sends the caller to
* `/tasks?view=hierarchy&epic=TXXX#hierarchy`, preserving any additional query
* parameters the caller passed.
*
* The previous tree implementation's rendering logic is already available in
* the shared shelf under `$lib/components/tasks` (extracted by T950); deleting
* the `+page.svelte` sibling therefore loses no functionality.
*
* @task T957
* @epic T949
*/
var load = ({ params, url }) => {
	const { epicId } = params;
	const target = new URL("/tasks", url.origin);
	for (const [key, value] of url.searchParams) target.searchParams.set(key, value);
	target.searchParams.set("view", "hierarchy");
	target.searchParams.set("epic", epicId);
	target.hash = "hierarchy";
	redirect(301, target.pathname + target.search + target.hash);
};

var _page_server_ts = /*#__PURE__*/Object.freeze({
	__proto__: null,
	load: load
});

const index = 31;
const server_id = "src/routes/tasks/tree/[epicId]/+page.server.ts";
const imports = [];
const stylesheets = [];
const fonts = [];

export { fonts, imports, index, _page_server_ts as server, server_id, stylesheets };
//# sourceMappingURL=31-BwdY9NnB.js.map
