Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Back Url Bundle Laravel Package

ys-tools/back-url-bundle

A Symfony bundle from ys-tools that helps applications track and restore the user's previous URL, so back links and post-action redirects return visitors to the right page. Configures through Symfony services and integrates with routing and session handling.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Feature decision — "return to origin" navigation. The package annotates Symfony 2 controller actions so that after a form submission (login, edit, save, delete) the user is redirected back to the referring page instead of a hard-coded route. This is the same product behavior your team will otherwise re-specify for every form: return to search results, return to a filtered list, return to the item detail page, return to the SSO-initiated page.
  • Roadmap prioritization. If your backlog contains items like "after saving, user loses their filters," "login drops users on the dashboard instead of where they were," or "multi-step wizard back button resets state," this is the pattern that resolves them. It is a small, high-leverage UX fix, not a platform initiative — scope it as a 1–2 day improvement per surface, not a project.
  • Build vs. buy. Decision: build, don't adopt. This is not a viable dependency (see below). The underlying behavior is ~30–80 lines in a modern framework: Laravel ships redirect()->back(), url()->previous(), and Redirector::intended(); add a signed return_to query parameter (HMAC / URL::signedRoute) when you need cross-request return targets that survive a login round-trip. Replicating the useful 10% of this package costs hours, not weeks.
  • Framework-fit check. Note the mismatch in the request: this is a Symfony 2 bundle, not a Laravel package. It cannot be installed into a Laravel application without a rewrite. Treat it as a reference implementation of an idea, not a component.
  • Use cases where the pattern (not this package) applies: post-login destination restoration, post-edit return to filtered/paginated listings, OAuth/SSO return_to round-trips, "cancel" on modal forms, and admin CRUD screens where losing scroll position and filter state is a recurring support complaint.

When to Consider This Package

  • Adopt as a dependency: never. It is archived, targets Symfony 2 (end-of-life since November 2019), sits in the PHP 5.x era, has 0 stars, 0 dependents, and no maintainer. There will be no security patches, no PHP 8 compatibility, and no support path. Adding it introduces permanent risk for a feature your framework already provides.
  • Consider as reference material only if you own a frozen, unmaintained Symfony 2 application that you cannot migrate and you need a cheap annotation-driven back-URL mechanism to bolt onto it. Even then, verify the annotation reader version compatibility first — that is a half-day spike, not an adoption decision.
  • Look elsewhere — or build — if any of these are true: you are on Laravel (any version), Symfony 4+, or PHP 8+; you need open-redirect protection (this class of package historically trusts the referrer, which is an attack surface — prefer signed/allow-listed return targets); you need it to survive cross-domain SSO; or you require anything with a security-review obligation.
  • Signals that you should just implement it in-house: the behavior is standard in your framework; the total surface area is a handful of controllers; and your security team will want to review the open-redirect handling anyway, which means you are reading and owning the code regardless.

How to Pitch It (Stakeholders)

  • One-liner for executives: "We found a small library that solves 'send the user back where they came from' after a form submit. It's abandoned and built for a framework we don't use, so we're not taking on the dependency — but the behavior is worth shipping, and it's a couple of days of our own work with no licensing or support cost."
  • For engineering: "Symfony 2 bundle, archived, zero dependents, EOL framework — non-starter as a dependency and not installable in Laravel. The idea is sound: capture the origin URL on GET, carry it through the POST, redirect there on success, with an allow-list or signed token to prevent open redirects. Laravel gives us redirect()->back() and Redirector::intended() already; we only need custom work for cross-request and SSO return targets."
  • Risk framing: adopting carries unpatched-code and open-redirect risk with no vendor; not adopting carries zero cost because the alternative is native framework behavior plus a small, reviewable internal helper. Recommend: reject the dependency, adopt the pattern, and log the UX items (post-login destination, post-save return) as low-effort roadmap candidates.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect