1. Help page link going to 404 page. Removes baseurl(Example my url : localhost/drupal8 -> Removes drupal8). The url to be localhost/admin/help/csv-to-config
2. After upload a csv file and process going on one more link called configuration synchronization also wrong url same like above.
3. After Finished process there is no file is shown to be import. The configuration synchronization page is empty.

Comments

Revathi.B created an issue. See original summary.

revathi.b’s picture

revathi.b’s picture

StatusFileSize
new1.88 KB
revathi.b’s picture

Status: Active » Needs review
marcelovani’s picture

Status: Needs review » Needs work

I can't reproduce the issue on my computer. I can't reproduce on Simplytest.me either.

I believe it is happening because you are running Drupal from a folder.

Maybe it relates to this https://www.ostraining.com/blog/drupal/move-drupal-to-a-new-folder/

I think your fix would help but the better fix is to do it using the drupal router

How about this for example?

      $output .= '<p>' . t('Visit the <a href=":url">help page</a> for more explanation about the CSV format.', array(':url' => Url::fromRoute('help.page', array('name' => 'csv_to_config'))->toString())) . '</p>';

and for the other link

      '#markup' => $this->t('Configurations saved. You can view the changes on the <a href=":url">Configuration synchronization</a> page.', array(':url' => Url::fromRoute('config.sync')->toString())
      ),

revathi.b’s picture

It is not working on my localhost. Thanks @marcelovani Now I have changed the url from route and it is working fine.

marcelovani’s picture

Status: Needs work » Needs review

Thanks, marking it to be reviewed

santhosh-kumar-rengasamy’s picture

I had the same issue, now its working after applying the above patch.
Thank you @revathi

  • marcelovani committed 5b161be on 8.x-1.x authored by Revathi.B
    Issue #2935042 by Revathi.B: Configuration csv not added in import page...
marcelovani’s picture

Status: Needs review » Fixed

Committed, thank you

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.