The part of a URL starting with # is called the fragment
, the fragment
is not sent to the server when a request is made by your browser, it is only available clientside. If you visit example.com/page#fragment
the server will only see example.com/page
as the request.
this should be your only route
Route::get('series', 'SeriesController@show');
inside method show
you should check it's an ajax call or not and return json or html
also check if google is trying to get it with _escaped_fragment_
source: https://developers.google.com/webmasters/ajax-crawling/docs/getting-started
Thanks guys for the insight. I was definitely thinking about it all wrong, so this really helped clarify things.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community