Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I recently updated from 8.1.8 to 8.1.9 ++ 8.1.10 and I am not sure if it started from 8.1.9 or 8.1.10.
The problem is that read-more links inside Views, are pointing to the home page.
- I didn't gave any special view directives --- It's just "Add a read more link".
- Inserting the token [node:nid] under "views-more link" didn't help.
- No relevant errors under drush ws --show...
This problem can be seen live here, in my own personal website.
Comment | File | Size | Author |
---|---|---|---|
native-preferences.png | 32.92 KB | Benia |
Comments
Comment #2
Benia CreditAttribution: Benia commentedComment #3
daiwik.addweb CreditAttribution: daiwik.addweb at AddWeb Solution Pvt. Ltd. commentedIf you will not add any path it will redirect to home page:
1. Please add Content: Path [hidden] field in your view. It should be exclude from display
2. Add "{{ path }}" token in under "More link path" or check in replacement patterns for the same.
3. Save your view and check.
Comment #4
aburrows CreditAttribution: aburrows as a volunteer commentedWe should test this 8.2x as otherwise this will become depreciated
Comment #5
LendudeThe default does indeed seem to be the home page, can't really see any recent changes in the code that makes that link, so don't know why that behaviour would change from 8.1.8 to 8.1.9
To solve, use the steps in #3 if you are using nodes. If you are not using nodes wait for #2810097: Allow views to provide the canonical entity URL of all entities, not just nodes. to land.
If there are steps to reproduce this issue still, please let us know!
Comment #6
cilefen CreditAttribution: cilefen commentedNoticed, again.