Sulu: External Link for subdomain is not working

Created on 12 Nov 2020  路  2Comments  路  Source: sulu/sulu

| Q | A
| --- | ---
| Sulu Version | 2.1.1
| Browser Version | Chrome 84.0.4147.105

Actual Behavior

How does Sulu behave at the moment?
The external link try to open a lokal page and go to 404

Expected Behavior

What is the behavior you expect?
Open link to external URL, would be also cool when you could select target blank

Steps to Reproduce

https://nevercodealone.de/blog-magazin
https://github.com/nevercodealone/cms-symfony-sulu

Bildschirmfoto von 2020-11-12 13-16-05
Bildschirmfoto von 2020-11-12 13-15-47

Bug

All 2 comments

You are accessing the phpcr.path instead of the url, also its important to use the sulu_content_path this will apply your webspace url settings to the url.

you should use here https://github.com/nevercodealone/cms-symfony-sulu/blob/a447341aa7f5afa882fcf7575e1e483366da5e52/templates/base.html.twig#L95:

{{ sulu_content_path(item.url) }}

Same for child see:

{{ sulu_content_path(child.url) }}

See also:

Thx for the clearing and your time on this noob issue ;)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

saphrus picture saphrus  路  4Comments

danrot picture danrot  路  6Comments

alexander-schranz picture alexander-schranz  路  4Comments

alexander-schranz picture alexander-schranz  路  3Comments

sagikazarmark picture sagikazarmark  路  8Comments