Move allLinks to class.
Fixed a bug in config.