L5 pagination generates url with "/?" (it was not in L4), that is not managed by all servers (for example my WAMP server doesn't like it). In my projects I always remove this trailing slash and all is fine. But I've read that "/?" is a correct syntax. So I read the ugly RFC 3986 and I didn't find any reference to this trailing slash.
Regarding the RFC, I think this is the relevant part:
If the base URI has a defined authority component and an empty path, then return a string consisting of "/" concatenated with the reference's path; otherwise,
return a string consisting of the reference's path component appended to all but the last segment of the base URI's path (i.e., excluding any characters after the right-most "/" in the base URI path, or excluding the entire base URI path if it does not contain any "/" characters).
@bestmomo are you referring to a trailing ? with no parameters?
I guess that isn't necessary at all, although it may have benefits...
Say somebody visited /my_paginated_list/ then went elsewhere but then returned to /my_paginated_list/ - the browser may have cached that page and any recent changes might not be seen.
If however they visited /my_paginated_list/?, the page would be refreshed and new content would be loaded. I.e. the ? forces a refresh.
@bestmomo from what I can make out from the second link that I sent and the RFC is this:
If you were to convert an absolute URI to a relative URI, you may have a problem because during the conversion the base path would be found by looking for the right-most "/".
Actually, if you force trailing slash - you will need to use /uri/?query=foo since without the slash before the question mark will redirect to trailing causing a 301.
To extend on what @bashy was saying, if you have a URL that ends like /mypage and a URL that ends like /mypage/, they are considered as different content, so for SEO purposes it's recommended to use one or the other. Although Google states that it's not that important.
I'm using homestead and I never had issues with it, but I didn't noticed until today that some om my problems have the trailing slash in the url as well. Projects on forge also didn't have any trouble with it..