Coder Social home page Coder Social logo

Comments (5)

RobertBoes avatar RobertBoes commented on July 2, 2024

The PR itself mentions what's changed, so I don't really see why that would need to be explained in the release notes? It's not really a breaking change that would require changes in user-land code.

from inertia-laravel.

driesvints avatar driesvints commented on July 2, 2024

I'm not really sure I see a breaking change either.

from inertia-laravel.

tanerkay avatar tanerkay commented on July 2, 2024

@driesvints @RobertBoes

I specifically made this issue because it did cause a breaking change in an application's user-land code.

Example is if you use trailing slashes (for some reason, Laravel makes using them really hard).

Request URI: https://example.com/test/

$request->getBaseUrl().$request->getRequestUri(): /test/ (expected)
Str::start(Str::after($request->fullUrl(), $request->getSchemeAndHttpHost()), '/'): /test (trailing slash lopped off)

Not sure if there are other consequences. All I'm suggesting is editing the release notes to make this more obvious, instead of requiring a developer to dig deep into each individual PR and notice obscurities like this.

from inertia-laravel.

driesvints avatar driesvints commented on July 2, 2024

I'm sorry @tanerkay but I don't think that's a valid use case. You should avoid using trailing slashes and redirect to urls without them. Here's a good article on how to do that: https://stefanbauer.me/tips-and-tricks/a-middleware-for-removing-trailing-slashes

from inertia-laravel.

tanerkay avatar tanerkay commented on July 2, 2024

@driesvints not my decision to make, I wish it was that simple.

anyway, up to you, it was just a suggestion to change "fix URL generation" to "change URL generation behaviour" in the release notes, didn't realise it would be so controversial

from inertia-laravel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.