[MGNLSTK-754] some links are calling localhost Created: 02/Mar/11  Updated: 31/May/11  Resolved: 31/May/11

Status: Closed
Project: Magnolia Standard Templating Kit (closed)
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Ana Osman Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
duplicate
duplicates MGNLSTK-704 Paging on Event-Overview delivers abs... Closed
Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

In magnolia's news overview paragraph, the next link and page navigation links are calling localhost. All the other links from that magnolia instance are working ok.

What could be the reason?

Thank you



 Comments   
Comment by Magnolia International [ 02/Mar/11 ]

Sounds like MGNLSTK-704.
You might want to configure /server/defaultBaseUrl to start with.

Comment by Ana Osman [ 02/Mar/11 ]

That one is already configured.

As far as I can see, the problem comes from :
info.magnolia.module.templatingkit.paragraphs.AbstractItemListModel.getPager()
{
final String currentPageLink;
if (MgnlContext.isWebContext() && MgnlContext.getAggregationState() != null)

{ currentPageLink = MgnlContext.getAggregationState().getOriginalURL(); }

else

{ currentPageLink = MagnoliaTemplatingUtilities.getInstance().createLink(MgnlContext.getAggregationState().getMainContent()); }

return new STKPager(currentPageLink, getItems(), content);
}

Comment by Magnolia International [ 18/Mar/11 ]

Ok, so this is indeed the same as MGNLSTK-704

Generated at Mon Feb 12 07:30:06 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.