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.

CommentFileSizeAuthor
native-preferences.png32.92 KBBenia
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Benia created an issue. See original summary.

Benia’s picture

Issue summary: View changes
daiwik.addweb’s picture

If 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.

aburrows’s picture

We should test this 8.2x as otherwise this will become depreciated

Lendude’s picture

Version: 8.1.10 » 8.2.x-dev
Priority: Major » Normal
Status: Active » Closed (works as designed)

The 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!

cilefen’s picture