Skip to content

Attachment link in item not work with SEF URL active #528

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nucleocreativo opened this issue Jun 5, 2020 · 8 comments
Closed

Attachment link in item not work with SEF URL active #528

nucleocreativo opened this issue Jun 5, 2020 · 8 comments

Comments

@nucleocreativo
Copy link

Hello,

the attachment item link return 404 error with the SEF URL option is active.

Thanks

@fevangelou
Copy link
Member

Please use the K2 forum https://www.joomlaworks.net/forum/k2 for such questions.

@nucleocreativo
Copy link
Author

nucleocreativo commented Jun 8, 2020

Sorry but I think that it is code problem before the row href=$attachment->link; return error 404, with the row href=JRoute::_('media/k2/attachments/'.$attachment->filename); work! Thanks

@fevangelou
Copy link
Member

Which file and line exactly?

@fevangelou fevangelou reopened this Jun 8, 2020
@nucleocreativo
Copy link
Author

The files are item.php and category-item.php in default template

@fevangelou
Copy link
Member

Yes, but where exactly? Inside your template's html/com_k2/ folder?

@nucleocreativo
Copy link
Author

In this directory: components/com_k2/templates/default

@fevangelou
Copy link
Member

Looks like you have Advanced SEF enabled. This is the issue in K2 v2.10.3. It'll be resolved in the upcoming K2 v2.10.4.

In the meantime you can just use the URL router from 2.10.2. More here: #522

@nucleocreativo
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants