After update (with composer update) to Bolt 5.0.4 or even fresh install via composer, the href of twig links of record, produces a link "/?slugOrId=..." to redirect to homepage.
Example: In local, the next twig sentence,
<a href="{{ record|link() }}" class="text-indigo-500 inline-flex items-center md:mb-2 lg:mb-0 py-6 underline"> {{ __('general.phrase.read-more') }} » </a>
Produces,
<a href="/?slugOrId=enim-nobis-et-vel" class="text-indigo-500 inline-flex items-center md:mb-2 lg:mb-0 py-6 underline"> | Read More »</a>
and then redirect the homepage
Where is... <a href="/page/enim-nobis-et-vel" >????

Details
| Question |
Answer |
| Relevant Bolt Version |
5.0.4 |
| Install type |
Composer install / composer update |
| BC Break |
yes/no |
| PHP version |
PHP 7.4.24 (cli) (built: Sep 21 2021 13:38:14) ( NTS Visual C++ 2017 x64) |
| Web server |
Built-in, version [ 7.4.24 ] |
| For UX/UI issues |
Browser name and version |
Reproduction
If you're filing a bug, please describe how to reproduce it. Include as much
relevant information as possible, such as:
Bug summary
The filter link() in twig <a href="{{ record|link() }}" > produces a /?slugOrId=... link, not contenttype/slug link
Specifics
Steps to reproduce
composer create-project bolt/project myprojectname
cd myprojectname
php bin/console bolt:setup
php bin/console serve:run
The links are /?slugOrId=...

(even on update of other projects the same result, with composer update)
Expected result
contentype/slug link
Actual result
/?slugOrId=.....
After update (with composer update) to Bolt 5.0.4 or even fresh install via composer, the href of twig links of record, produces a link "/?slugOrId=..." to redirect to homepage.
Example: In local, the next twig sentence,
<a href="{{ record|link() }}" class="text-indigo-500 inline-flex items-center md:mb-2 lg:mb-0 py-6 underline"> {{ __('general.phrase.read-more') }} » </a>Produces,
<a href="/?slugOrId=enim-nobis-et-vel" class="text-indigo-500 inline-flex items-center md:mb-2 lg:mb-0 py-6 underline"> | Read More »</a>and then redirect the homepage
Where is...
<a href="/page/enim-nobis-et-vel" >????Details
Reproduction
If you're filing a bug, please describe how to reproduce it. Include as much
relevant information as possible, such as:
Bug summary
The filter link() in twig
<a href="{{ record|link() }}" >produces a /?slugOrId=... link, not contenttype/slug linkSpecifics
Steps to reproduce
composer create-project bolt/project myprojectname
cd myprojectname
php bin/console bolt:setup
php bin/console serve:run
The links are /?slugOrId=...
(even on update of other projects the same result, with composer update)
Expected result
contentype/slug link
Actual result
/?slugOrId=.....