skip to Main Content

I need to change the hardcoded part of the default front page shown in below screenshot

enter image description here

This may be easy, but, the part http://www.website.com is hardcoded, how it can be changed?

FW: Drupal 8
OS: Centos 7
WS: Apache
DB: Mysql

2

Answers


  1. Answer will be: you don’t have to change that part.

    It’s not hard-coded. Drupal can detect current domain so if you move site to different domain this part will also change to correct one. Good thing with Drupal is that it keeps paths in relative formats so when you move site to new domain they will work out of box (unlike i.e. WordPress). Just make sure that urls you enter manually (i.e. links which are part of some wysiwyg edited content) are also in root relative format.

    Login or Signup to reply.
  2. As per @Milang Accepted Answer, Here I found a practical example Drupal default front page URL is not hardcoded.

    You can find the example here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search