-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
The alias-url of news with external target doesn't redirect #33
Comments
|
I agree. If if (null === $objArticle)
{
throw new PageNotFoundException('Page not found: ' . \Environment::get('uri'));
}
+ if ('default' !== $objArticle->source && substr($objArticle->url, 0, 7) !== 'mailto:')
+ {
+ throw new RedirectResponseException($this->generateNewsUrl($objArticle), 301);
+ }
$arrArticle = $this->parseArticle($objArticle);
$this->Template->articles = $arrArticle;// edit: may be a |
|
What about |
|
May be respond with a |
|
That's a very good idea. We should even do this if the external URL is not a |
|
Hm, so you mean responding with a |
|
Changed in ce44f81. |
If you create a news-record with an external redirect, the newslist is linking the entry to the external ressource.
The previously generated alias-url of the news-entry doesn't redirect you.
The old url is still available and shows a
1to the screen:AFAIK this is a bug as the page-module is handeling this case correctly.
The text was updated successfully, but these errors were encountered: